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:
Valera Rozuvan
2013-01-04 15:20:41 +02:00
committed by Alexander Kryklia
parent b540ca492a
commit cd6e220ead
3 changed files with 12 additions and 0 deletions

View File

@@ -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 () {

View File

@@ -113,6 +113,10 @@ define(['logme'], function (logme) {
);
state.sliderEl.appendTo(showEl);
state.sliderEl.mousedown(function (event) {
event.preventDefault();
});
moveRightEl = $(
'<div ' +
'style=" ' +

View File

@@ -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,