Skip to content

Commit

Permalink
implement support for touch events
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-j committed Sep 14, 2017
1 parent 52f8e87 commit 3d677b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/js/base/module/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ define([
context.triggerEvent('focus', event);
}).on('blur', function (event) {
context.triggerEvent('blur', event);
}).on('mousedown', function (event) {
}).on('mousedown touchstart', function (event) {
if (event.type === 'touchstart') e.stopPropagation();
context.triggerEvent('mousedown', event);
}).on('mouseup', function (event) {
}).on('mouseup touchend', function (event) {
if (event.type === 'touchend') e.stopPropagation();
context.triggerEvent('mouseup', event);
}).on('scroll', function (event) {
context.triggerEvent('scroll', event);
Expand Down

0 comments on commit 3d677b9

Please sign in to comment.