MDL-55322 assignfeedback_editpdf: Prevent scroll when moving comments
authorJake Dallimore <jake@moodle.com>
Mon, 25 Jul 2016 03:56:43 +0000 (11:56 +0800)
committerJake Dallimore <jake@moodle.com>
Mon, 1 Aug 2016 01:43:03 +0000 (09:43 +0800)
Prevent the default scroll behaviour when using gestures to move
comments on the mobile site.

mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor-debug.js
mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor-min.js
mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor.js
mod/assign/feedback/editpdf/yui/src/editor/js/comment.js

index 9fca563..1c32501 100644 (file)
Binary files a/mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor-debug.js and b/mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor-debug.js differ
index c4965e1..c0373e1 100644 (file)
Binary files a/mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor-min.js and b/mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor-min.js differ
index 9fca563..1c32501 100644 (file)
Binary files a/mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor.js and b/mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor.js differ
index 0a9985d..e94f5a2 100644 (file)
@@ -267,6 +267,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
 
         node.on('gesturemovestart', function(e) {
             if (editor.currentedit.tool === 'select') {
+                e.preventDefault();
                 node.setData('dragging', true);
                 node.setData('offsetx', e.clientX - node.getX());
                 node.setData('offsety', e.clientY - node.getY());