- Linting (ESLint): Stricter rules (or switch to warning)
- Breaking internal API change: `updateGripCursor` moved to be class method of Selector rather than instance method - Breaking internal API change: `subpathIsClosed` moved to be class method of `Path` rather than instance method - Refactoring: Reuse utilities base64 encoder for SVG icons plugin - Docs (JSDoc): Fix return of the `mouseUp` (can also be an object) and `mouseDown` (may also be a boolean) of `pathActions`; other JSDoc additions/improvements
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
// http://ross.posterous.com/2008/08/19/iphone-touch-events-in-javascript/
|
||||
/**
|
||||
*
|
||||
* @param {Event} ev
|
||||
* @returns {undefined}
|
||||
*/
|
||||
function touchHandler (ev) {
|
||||
const {changedTouches} = ev,
|
||||
first = changedTouches[0];
|
||||
@@ -11,7 +16,7 @@ function touchHandler (ev) {
|
||||
default: return;
|
||||
}
|
||||
|
||||
const {screenX, screenY, clientX, clientY} = first;
|
||||
const {screenX, screenY, clientX, clientY} = first; // eslint-disable-line no-shadow
|
||||
const simulatedEvent = new MouseEvent(type, {
|
||||
// Event interface
|
||||
bubbles: true,
|
||||
|
||||
Reference in New Issue
Block a user