Skip to content

Commit

Permalink
VideoProgressSlider: Trigger seek only when touch end
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed Nov 25, 2023
1 parent 73016ae commit 29d0aa5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wiliwili/source/view/video_progress_slider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ VideoProgressSlider::VideoProgressSlider() {

this->addGestureRecognizer(new TapGestureRecognizer(
[this](brls::TapGestureStatus status, brls::Sound* soundToPlay) {
if (status.state != GestureState::END) return;
float paddingWidth = getWidth() - pointer->getWidth();
float delta =
status.position.x - pointer->getWidth() / 2 - pointer->getX();
Expand Down

0 comments on commit 29d0aa5

Please sign in to comment.