From 33eb986c59198ef77e38d5019f4d9b6da843ebf3 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Wed, 15 Feb 2012 23:08:20 +0000 Subject: [PATCH] fix for firefox image drag bug (fixes #387, and drag-and-drop) --- source/Ox.UI/Ox.UI.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/Ox.UI/Ox.UI.js b/source/Ox.UI/Ox.UI.js index 0c06829e..37fa378e 100644 --- a/source/Ox.UI/Ox.UI.js +++ b/source/Ox.UI/Ox.UI.js @@ -260,6 +260,10 @@ Ox.load.UI = function(options, callback) { Ox.$document = Ox.UI.$document = $(document); Ox.$head = Ox.UI.$head = $('head'); Ox.$window = Ox.UI.$window = $(window); + // fixme: is this the right place to do this? + $.browser.mozilla && Ox.$document.bind('dragstart', function() { + return false; + }); callbacks.forEach(function(callback) { callback(); });