Skip to content

Commit 5090b9b

Browse files
committed
- Fixed bug: click events not working on touch devices alvarotrigo#2338
1 parent 9feb3d6 commit 5090b9b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

jquery.fullPage.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,13 @@
11811181
* Handler for the touch start event.
11821182
*/
11831183
function touchStartHandler(event){
1184+
//preventing default bouncing in iOS 10 #2285
11841185
event.preventDefault();
1186+
1187+
//allowing to catch click events after preventing default #2338
1188+
//http://stackoverflow.com/q/40094570/1081396
1189+
$(event.target).trigger('click');
1190+
11851191
var e = event.originalEvent;
11861192

11871193
//stopping the auto scroll to adjust to a section
@@ -1945,7 +1951,7 @@
19451951
}
19461952

19471953
destiny.addClass(ACTIVE).siblings().removeClass(ACTIVE);
1948-
1954+
19491955
if(!v.localIsResizing){
19501956
stopMedia(v.prevSlide);
19511957
lazyLoad(destiny);
@@ -2945,7 +2951,7 @@
29452951

29462952
//off by default until the section gets active
29472953
iScrollInstance.wheelOff();
2948-
2954+
29492955
$this.data('iscrollInstance', iScrollInstance);
29502956
});
29512957
},

0 commit comments

Comments
 (0)