Merge pull request #1637 from rachel-fenichel/cp/disable_pointerevents

Disable pointer events for the february release
This commit is contained in:
Rachel Fenichel
2018-02-16 16:50:55 -08:00
committed by GitHub

View File

@@ -48,13 +48,7 @@ Blockly.Touch.touchIdentifier_ = null;
* @type {Object}
*/
Blockly.Touch.TOUCH_MAP = {};
if (window.PointerEvent) {
Blockly.Touch.TOUCH_MAP = {
'mousedown': ['pointerdown'],
'mousemove': ['pointermove'],
'mouseup': ['pointerup', 'pointercancel']
};
} else if (goog.events.BrowserFeature.TOUCH_ENABLED) {
if (goog.events.BrowserFeature.TOUCH_ENABLED) {
Blockly.Touch.TOUCH_MAP = {
'mousedown': ['touchstart'],
'mousemove': ['touchmove'],