Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

Allow mouse and touch events at the same time #1097

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function IScroll (el, options) {
// INSERT POINT: OPTIONS
disablePointer : !utils.hasPointer,
disableTouch : utils.hasPointer || !utils.hasTouch,
disableMouse : utils.hasPointer || utils.hasTouch,
disableMouse : utils.hasPointer,
startX: 0,
startY: 0,
scrollY: true,
Expand Down
1 change: 1 addition & 0 deletions src/default/handleEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
handleEvent: function (e) {
switch ( e.type ) {
case 'touchstart':
e.stopPropagation();
case 'pointerdown':
case 'MSPointerDown':
case 'mousedown':
Expand Down