Skip to content

Commit

Permalink
8462. Fix on preventDefault error
Browse files Browse the repository at this point in the history
  • Loading branch information
yohannahbautista committed Apr 5, 2024
1 parent 58cd29b commit cbfc019
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/arrange/arrange.js
Expand Up @@ -44,11 +44,14 @@ Arrange.prototype = {

// example from: https://github.com/farhadi/html5arrangeable
init() {
this.isTouch = env.features.touch;
this.isIe = env.browser.name === 'ie';
this.handleEvents();
},

get isTouch() {
return env.features.touch || env.devicespecs.isMobile;
},

/**
* Get Element By Touch In List
* @private
Expand Down Expand Up @@ -328,7 +331,7 @@ Arrange.prototype = {
}
let overItem = this;
let overIndex;
e.preventDefault();
e.stopPropagation();

if (self.isTouch && !self.placeholderTouch) {
self.placeholderTouch = self.dragging
Expand Down
1 change: 1 addition & 0 deletions src/components/drag/_drag.scss
Expand Up @@ -10,6 +10,7 @@
-ms-touch-action: none;
-webkit-touch-callout: none;
-webkit-user-select: none;
touch-action: none;
z-index: 7000;

&.animated {
Expand Down

0 comments on commit cbfc019

Please sign in to comment.