web: the library checks for wasm32 (carried)
This commit is contained in:
1 parent
fe467d2bfe
commit
a03df0987c
44 files changed
+141
-104
No files matched your search
+1
-1
@@ -26,7 +26,7 @@ const JUMP: f64 = 10.0;
|
||||
|
||||
/// When the pointer last moved over the player, and whether a wake is set to hide the controls.
|
||||
struct Watch {
|
||||
moved: std::time::Instant,
|
||||
moved: web_time::Instant,
|
||||
waking: bool,
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -1,9 +1,10 @@
|
||||
use std::{rc::Rc, time::Instant};
|
||||
use std::rc::Rc;
|
||||
|
||||
use gpui::{
|
||||
AnyElement, App, ElementId, IntoElement, ParentElement, RenderOnce, Styled, Window, div,
|
||||
prelude::*,
|
||||
};
|
||||
use web_time::Instant;
|
||||
|
||||
use crate::{
|
||||
buttons::{Button, ButtonVariant, IconButton, ToggleButton, ToggleItem},
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
use std::time::{Duration, Instant};
|
||||
use std::time::Duration;
|
||||
|
||||
use gpui::{
|
||||
Context, Entity, IntoElement, Modifiers, MouseButton, ParentElement, Render, ScrollDelta,
|
||||
ScrollWheelEvent, SharedString, Styled, TestAppContext, TouchPhase, VisualTestContext, Window,
|
||||
div, point, px,
|
||||
};
|
||||
use web_time::Instant;
|
||||
|
||||
use super::{picture, press, settle, setup, tab_to};
|
||||
use crate::media::{
|
||||
|
||||
Reference in new issue
Block a user