File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -639,16 +639,19 @@ define([
639
639
let now = new Date ( ) . getTime ( ) ,
640
640
timesince = now - tapFlag ;
641
641
642
- if ( timesince > 10 && ( isTouchEnabled && timesince < 400 ) || ( ! isTouchEnabled && timesince < 2000 ) ) {
642
+ if ( timesince > 20 && ( isTouchEnabled && timesince < 400 ) || ( ! isTouchEnabled && timesince < 2000 ) ) {
643
643
transitionActive = false ;
644
644
dblClickHandler ( e ) ;
645
645
}
646
646
tapFlag = now ;
647
647
}
648
648
649
- $image . off ( 'dblclick' ) ;
650
- $image . on ( 'dblclick' , detectDoubleTap ) ;
651
- $image . on ( 'touchend' , detectDoubleTap ) ;
649
+ if ( isTouchEnabled ) {
650
+ $image . on ( 'touchend' , detectDoubleTap ) ;
651
+ } else {
652
+ $image . off ( 'dblclick' ) ;
653
+ $image . on ( 'dblclick' , dblClickHandler ) ;
654
+ }
652
655
653
656
if ( gallery . fullScreen ) {
654
657
toggleZoomButtons ( $image , isTouchEnabled , checkForVideo ( fotorama . activeFrame . $stageFrame ) ) ;
You can’t perform that action at this time.
0 commit comments