MDL-55322 assignfeedback_editpdf: Prevent scroll when moving comments
[moodle.git] / mod / assign / feedback / editpdf / yui / src / editor / js / comment.js
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());