We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d737796 commit d949a83Copy full SHA for d949a83
lib/web/magnifier/magnify.js
@@ -647,17 +647,15 @@ define([
647
}
648
649
650
- if (isTouchEnabled) {
651
- $image.off('tap');
652
- $image.on('tap', function (e) {
653
- if (e.originalEvent.originalEvent.touches.length === 0) {
654
- detectDoubleTap(e);
655
- }
656
- });
657
- } else {
658
- $image.off('dblclick');
659
- $image.on('dblclick', dblClickHandler);
660
+ $image.off('tap');
+ $image.on('tap', function (e) {
+ if (e.originalEvent.originalEvent.touches.length === 0) {
+ detectDoubleTap(e);
+ }
+ });
+
+ $image.off('dblclick');
+ $image.on('dblclick', detectDoubleTap);
661
662
if (gallery.fullScreen) {
663
toggleZoomButtons($image, isTouchEnabled, checkForVideo(fotorama.activeFrame.$stageFrame));
0 commit comments