mirror of
https://github.com/moodle/moodle.git
synced 2025-03-22 16:40:07 +01:00
Merge branch 'MDL-64678-master' of git://github.com/damyon/moodle
This commit is contained in:
commit
40f289f362
@ -4779,7 +4779,7 @@ EDITOR.prototype = {
|
||||
*/
|
||||
disable_touch_scroll: function() {
|
||||
if (this.event_listener_options_supported()) {
|
||||
document.addEventListener('touchmove', this.stop_touch_scroll, {passive: false});
|
||||
document.addEventListener('touchmove', this.stop_touch_scroll.bind(this), {passive: false});
|
||||
}
|
||||
},
|
||||
|
||||
@ -4788,8 +4788,12 @@ EDITOR.prototype = {
|
||||
* @param {Object} e
|
||||
*/
|
||||
stop_touch_scroll: function(e) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
var drawingregion = this.get_dialogue_element(SELECTOR.DRAWINGREGION);
|
||||
|
||||
if (drawingregion.contains(e.target)) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
File diff suppressed because one or more lines are too long
@ -4779,7 +4779,7 @@ EDITOR.prototype = {
|
||||
*/
|
||||
disable_touch_scroll: function() {
|
||||
if (this.event_listener_options_supported()) {
|
||||
document.addEventListener('touchmove', this.stop_touch_scroll, {passive: false});
|
||||
document.addEventListener('touchmove', this.stop_touch_scroll.bind(this), {passive: false});
|
||||
}
|
||||
},
|
||||
|
||||
@ -4788,8 +4788,12 @@ EDITOR.prototype = {
|
||||
* @param {Object} e
|
||||
*/
|
||||
stop_touch_scroll: function(e) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
var drawingregion = this.get_dialogue_element(SELECTOR.DRAWINGREGION);
|
||||
|
||||
if (drawingregion.contains(e.target)) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
@ -1503,7 +1503,7 @@ EDITOR.prototype = {
|
||||
*/
|
||||
disable_touch_scroll: function() {
|
||||
if (this.event_listener_options_supported()) {
|
||||
document.addEventListener('touchmove', this.stop_touch_scroll, {passive: false});
|
||||
document.addEventListener('touchmove', this.stop_touch_scroll.bind(this), {passive: false});
|
||||
}
|
||||
},
|
||||
|
||||
@ -1512,8 +1512,12 @@ EDITOR.prototype = {
|
||||
* @param {Object} e
|
||||
*/
|
||||
stop_touch_scroll: function(e) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
var drawingregion = this.get_dialogue_element(SELECTOR.DRAWINGREGION);
|
||||
|
||||
if (drawingregion.contains(e.target)) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user