Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit efbb8aa

Browse files
committed
fix: update slider version to fix pan hitslop issue
1 parent 12b833d commit efbb8aa

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"lottie-react-native": "^5.0.1",
7373
"metro-react-native-babel-preset": "^0.66.2",
7474
"react-native": "0.66.4",
75-
"react-native-awesome-slider": "^2.0.3",
75+
"react-native-awesome-slider": "^2.0.4",
7676
"react-native-builder-bob": "^0.18.2",
7777
"react-native-gesture-handler": "^2.3.2",
7878
"react-native-orientation-locker": "*",

src/index.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -681,19 +681,10 @@ const VideoPlayer = forwardRef<VideoPlayerRef, VideoProps>(
681681
*/
682682
const onSeek = (data: OnSeekData) => {
683683
if (isScrubbing.value) {
684-
// Seeking may be false here if the user released the seek bar while the player was still processing
685-
// the last seek command. In this case, perform the steps that have been postponed.
686-
if (!isSeeking.current) {
687-
setControlTimeout();
688-
pause();
689-
}
690-
isSeeking.current = false;
691684
isScrubbing.value = false;
692-
693685
setCurrentTime(data.currentTime);
694-
} else {
695-
isSeeking.current = false;
696686
}
687+
isSeeking.current = false;
697688
};
698689

699690
/**

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7375,10 +7375,10 @@ react-is@^16.13.0, react-is@^16.13.1, react-is@^16.7.0:
73757375
resolved "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
73767376
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
73777377

7378-
react-native-awesome-slider@^2.0.3:
7379-
version "2.0.3"
7380-
resolved "https://registry.yarnpkg.com/react-native-awesome-slider/-/react-native-awesome-slider-2.0.3.tgz#f008edc500976d95b366365aa72f40cbcdb1bd46"
7381-
integrity sha512-EGA0XNldiTV2rsGdKeo0fNDQdZwl4wArHVd9L6+SLgT/Swn+BfGt7t6iQKVy+AvlzU8yhigQGK+XJk+uZj7ufw==
7378+
react-native-awesome-slider@^2.0.4:
7379+
version "2.0.4"
7380+
resolved "https://registry.yarnpkg.com/react-native-awesome-slider/-/react-native-awesome-slider-2.0.4.tgz#b1d2df7742b21871162aba6e9a3d0eef4ae31b50"
7381+
integrity sha512-Gc1W8rZjZhGJ/iiy4OZNz8TNTkmQPGfjNa/7YokiK1Hy84QbdsjXsYgs1BqcJb9paafoOYO2WofYPt4vm2INlg==
73827382

73837383
react-native-builder-bob@^0.18.2:
73847384
version "0.18.2"

0 commit comments

Comments
 (0)