Skip to content

🎥 Make videos programmatically with React

Fix to enable touch for seek and volume

Zayco3b7e2fa0cdcd
diff --git a/packages/player/src/MediaVolumeSlider.tsx b/packages/player/src/MediaVolumeSlider.tsx
index d217a0acf6..83b3f95c08 100644
--- a/packages/player/src/MediaVolumeSlider.tsx
+++ b/packages/player/src/MediaVolumeSlider.tsx
@@ -16,6 +16,7 @@ const parentDivStyle: React.CSSProperties = {
padding: '6px',
justifyContent: 'center',
alignItems: 'center',
+ touchAction: 'none',
};
const containerStyle: React.CSSProperties = {
diff --git a/packages/player/src/PlayerSeekBar.tsx b/packages/player/src/PlayerSeekBar.tsx
index 8980ae383f..089846f1f9 100644
--- a/packages/player/src/PlayerSeekBar.tsx
+++ b/packages/player/src/PlayerSeekBar.tsx
@@ -30,6 +30,7 @@ const containerStyle: React.CSSProperties = {
boxSizing: 'border-box',
cursor: 'pointer',
position: 'relative',
+ touchAction: 'none',
};
const barBackground: React.CSSProperties = {