From d0d09b935dbdfbfecb1dc42a2c4b43bb2fe87201 Mon Sep 17 00:00:00 2001 From: Theresa Song Loong Date: Tue, 19 Nov 2019 18:06:34 +0100 Subject: [PATCH] Fix passive event listener with preventDefault() --- raphael.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/raphael.js b/raphael.js index 406fb98d..c7a8c157 100644 --- a/raphael.js +++ b/raphael.js @@ -2873,7 +2873,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_ return fn.call(element, e, pos.x, pos.y); }; - obj.addEventListener(touchMap[type], _f, false); + obj.addEventListener(touchMap[type], _f, {passive:true}); } return function () { @@ -8004,13 +8004,13 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved. -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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) - name (array) if you don’t want to use separators, you can use array of strings - f (function) event handler function ** - = (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. + = (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. > Example: | eve.on("mouse", eatIt)(2); | eve.on("mouse", scream);