Skip to content

Commit b5fdbdc

Browse files
authored
Merge pull request #1113 from hypertexttheresa/master
Fix passive event listener calling preventDefault() with drag
2 parents 239dd92 + d0d09b9 commit b5fdbdc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

raphael.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2873,7 +2873,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_
28732873

28742874
return fn.call(element, e, pos.x, pos.y);
28752875
};
2876-
obj.addEventListener(touchMap[type], _f, false);
2876+
obj.addEventListener(touchMap[type], _f, {passive:true});
28772877
}
28782878

28792879
return function () {
@@ -8004,13 +8004,13 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_
80048004
/***/ (function(module, exports, __webpack_require__) {
80058005

80068006
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
8007-
//
8007+
//
80088008
// Licensed under the Apache License, Version 2.0 (the "License");
80098009
// you may not use this file except in compliance with the License.
80108010
// You may obtain a copy of the License at
8011-
//
8011+
//
80128012
// http://www.apache.org/licenses/LICENSE-2.0
8013-
//
8013+
//
80148014
// Unless required by applicable law or agreed to in writing, software
80158015
// distributed under the License is distributed on an "AS IS" BASIS,
80168016
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -8210,7 +8210,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Copyright (c)
82108210
- name (array) if you don’t want to use separators, you can use array of strings
82118211
- f (function) event handler function
82128212
**
8213-
= (function) returned function accepts a single numeric parameter that represents z-index of the handler. It is an optional feature and only used when you need to ensure that some subset of handlers will be invoked in a given order, despite of the order of assignment.
8213+
= (function) returned function accepts a single numeric parameter that represents z-index of the handler. It is an optional feature and only used when you need to ensure that some subset of handlers will be invoked in a given order, despite of the order of assignment.
82148214
> Example:
82158215
| eve.on("mouse", eatIt)(2);
82168216
| eve.on("mouse", scream);

0 commit comments

Comments
 (0)