Commit cd6e220e by Valera Rozuvan Committed by Alexander Kryklia

Fixed annoying bug whre if you dragged any part of the base image or other parts…

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.
parent b540ca49
......@@ -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,
......
Markdown is supported
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