Skip to content

Commit

Permalink
Support all browsers for backgroundColor changer
Browse files Browse the repository at this point in the history
  • Loading branch information
NIINO Kenya committed Jun 28, 2014
1 parent 4080c83 commit 14451d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions editor/public/img/tool-picker.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions editor/public/js/editor-ui.js.php
Expand Up @@ -537,15 +537,15 @@ function() {
},
EditorUI.BACKGROUND_SELECT_DELAY_MS);
var endEvent = evt.detail.eventType == "touchstart" ? "touchend" : "mouseup";
evt.explicitOriginalTarget.addEventListener(endEvent, EditorUI.pencilPressListener, false);
evt.target.addEventListener(endEvent, EditorUI.pencilPressListener, false);
}

EditorUI.finishPencilPress = function(evt, shortPressCallback) {
clearTimeout(EditorUI.longPressTimer);
if (!EditorUI.isLongPress) {
shortPressCallback();
}
evt.target.removeEventListener(evt.type, EditorUI.pencilPressListener, false);
evt.target.ownerDocument.removeEventListener(evt.type, EditorUI.pencilPressListener, false);
}

EditorUI.selectEraser = function() {
Expand Down

0 comments on commit 14451d9

Please sign in to comment.