Fixed annoying bug whre if you dragged any part of the base image or other parts of the Drag and Drop problem, then the browser would start highlighting the elements.
This commit is contained in:
committed by
Alexander Kryklia
parent
b540ca492a
commit
cd6e220ead
@@ -35,6 +35,10 @@ define(['logme'], function (logme) {
|
||||
state.baseImageEl.appendTo(baseImageElContainer);
|
||||
baseImageElContainer.appendTo(state.containerEl);
|
||||
|
||||
state.baseImageEl.mousedown(function (event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
state.baseImageLoaded = true;
|
||||
});
|
||||
state.baseImageEl.error(function () {
|
||||
|
||||
@@ -113,6 +113,10 @@ define(['logme'], function (logme) {
|
||||
);
|
||||
state.sliderEl.appendTo(showEl);
|
||||
|
||||
state.sliderEl.mousedown(function (event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
moveRightEl = $(
|
||||
'<div ' +
|
||||
'style=" ' +
|
||||
|
||||
@@ -43,6 +43,10 @@ define(['logme'], function (logme) {
|
||||
|
||||
targetEl.appendTo(state.baseImageEl.parent());
|
||||
|
||||
targetEl.mousedown(function (event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
state.targets.push({
|
||||
'id': obj.id,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user