mirror of
https://github.com/google/blockly.git
synced 2025-12-16 06:10:12 +01:00
Merge branch 'develop' into merge-develop-to-goog_module
This commit is contained in:
@@ -188,7 +188,12 @@ Code.bindClick = function(el, func) {
|
||||
el = document.getElementById(el);
|
||||
}
|
||||
el.addEventListener('click', func, true);
|
||||
el.addEventListener('touchend', func, true);
|
||||
function touchFunc(e) {
|
||||
// Prevent code from being executed twice on touchscreens.
|
||||
e.preventDefault();
|
||||
func(e);
|
||||
}
|
||||
el.addEventListener('touchend', touchFunc, true);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user