(null);
@@ -63,8 +63,8 @@ export const withScrubbing = (Component: React.Co
...curr,
pointerStartPos: e.clientX
}));
- window.addEventListener("mouseup", handleScrubEnd);
- window.addEventListener("mousemove", handleScrubMove);
+
+ window.addEventListener("pointermove", handleScrubMove);
return true;
}
}
@@ -73,8 +73,8 @@ export const withScrubbing =
(Component: React.Co
if (debug) console.log(`${refListener.current} withSCRUBBING SCRUB_END!! `);
e.preventDefault();
e.stopPropagation();
- window.removeEventListener("mouseup", handleScrubEnd);
- window.removeEventListener("mousemove", handleScrubMove);
+
+ window.removeEventListener("pointermove", handleScrubMove);
setStates((curr)=>({
...curr,
pointerStartPos: -1,
@@ -108,12 +108,13 @@ export const withScrubbing =
(Component: React.Co
if(!(window as any)[`listener-id-${refListener.current}`]){
(window as any)[`listender-id-${refListener.current}`] = true;
- window.addEventListener("mousedown", handleScrubStart);
+ window.addEventListener("pointerdown", handleScrubStart);
+ window.addEventListener("pointerup", handleScrubEnd);
return () => {
(window as any)[`listener-id-${refListener.current}`] = false;
- window.removeEventListener("mousedown", handleScrubStart);
- window.removeEventListener("mouseup", handleScrubEnd);
- window.removeEventListener("mousemove", handleScrubMove);
+ window.removeEventListener("pointerdown", handleScrubStart);
+ window.removeEventListener("pointerup", handleScrubEnd);
+ window.removeEventListener("pointermove", handleScrubMove);
};
}
}, [scrubberWidth, boundingWidth]);
diff --git a/packages/fakeyou.com/src/components/common/VideoQuickTrim/reducer.tsx b/packages/fakeyou.com/src/components/common/VideoQuickTrim/reducer.tsx
index 4d0faa95a7..beb8d5811d 100644
--- a/packages/fakeyou.com/src/components/common/VideoQuickTrim/reducer.tsx
+++ b/packages/fakeyou.com/src/components/common/VideoQuickTrim/reducer.tsx
@@ -1,6 +1,5 @@
import {
MIN_VID_DURATION,
- TIME_CURSOR_WIDTH,
TRIM_OPTIONS,
roundToMilliseconds
} from "./utilities";
diff --git a/packages/fakeyou.com/src/components/common/VideoQuickTrim/styles.scss b/packages/fakeyou.com/src/components/common/VideoQuickTrim/styles.scss
index 0dc6db8a49..649cc62e59 100644
--- a/packages/fakeyou.com/src/components/common/VideoQuickTrim/styles.scss
+++ b/packages/fakeyou.com/src/components/common/VideoQuickTrim/styles.scss
@@ -71,6 +71,7 @@ $playbar-height: 2rem;
position: relative;
height: $playbar-height;
width: 100%;
+ margin-top: 7px;
}
.playbar-bg {
position: absolute;
@@ -94,6 +95,7 @@ $playbar-height: 2rem;
}
.loaded{
background-color: $gray-600;
+ transition: width 0.5s;
}
}
diff --git a/packages/fakeyou.com/src/v2/view/pages/components_library/sandbox.tsx b/packages/fakeyou.com/src/v2/view/pages/components_library/sandbox.tsx
index 6b5ea067f6..1e368410a0 100644
--- a/packages/fakeyou.com/src/v2/view/pages/components_library/sandbox.tsx
+++ b/packages/fakeyou.com/src/v2/view/pages/components_library/sandbox.tsx
@@ -1,5 +1,5 @@
import React, { useState } from 'react';
-import VideoQuickTrim from 'components/common/VideoQuickTrim';
+import VideoPlayer from 'components/common/VideoPlayer';
import { NavLink } from 'react-router-dom';
import {Container, Panel} from 'components/common';
@@ -21,10 +21,10 @@ export default function ComponentSandbox(
-