Commit 46c990ea authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Stop blocktype images from freezing during drag in IE (bug #891916)



When dragging a blocktype in the view editor in IE, dragging it very
slowly usually causes the block to suddenly disappear, and the cursor
to turn into a crossed circle.  If you let go of the mouse, the
blocktype image appears at the cursor, and clicking the mouse again
will drop the blocktype.  This can be fixed by disabling IE's default
startdrag function.

Change-Id: I03b3150dbdef7f59f6f638d0cc71a773df5de576
Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 95290e09
......@@ -106,6 +106,12 @@ function ViewManager() {
});
}
if (self.isIE7) {
// Disable IE's default image dragging function, otherwise blocktypes being dragged
// sometimes freeze and then stick to the cursor on mouseup
document.ondragstart = function () { return false; };
}
// Now we're done, remove the loading message and display the page
removeElement('views-loading');
showElement(self.bottomPane);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment