Commit b2b90e90 authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

Fix Bug 20297 - Двойной клик не обрабатывается в режиме редактирования...

Fix Bug 20297 - Двойной клик не обрабатывается в режиме редактирования надписей/заголовков внутри диаграммы (попадали в канву курсора)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53083 954022d7-b5bf-4e40-9824-e11837661b57
parent 5c62de03
......@@ -5316,19 +5316,18 @@ function ClickCounter() {
var currTime = getCurrentTime();
if ( (_this.button === button) && (_this.x === x) && (_this.y === y) && (currTime - _this.time < 500) )
_this.clickCount++;
_this.clickCount = 2;
else
_this.clickCount = 1;
if ( _this.log ) {
console.log("-----");
console.log("x: " + (_this.x === x));
console.log("y: " + (_this.y === y));
console.log("x-> " + _this.x + " : " + x);
console.log("y-> " + _this.y + " : " + y);
console.log("Time: " + (currTime - _this.time));
console.log("Count: " + _this.clickCount);
console.log("");
}
}
_this.time = currTime;
}
......
......@@ -141,6 +141,21 @@
//.on("touchstart", function () {self._onMouseDown(arguments[0].originalEvent.touches[0]);return false;})
//.on("touchmove", function () {self._onMouseMove(arguments[0].originalEvent.touches[0]);return false;})
//.on("touchend", function () {self._onMouseUp(arguments[0].originalEvent.changedTouches[0]);return false;});
// Курсор для графических объектов. Определяем mousedown и mouseup для выделения текста.
var oShapeCursor = $("#id_target_cursor");
if ( oShapeCursor ) {
oShapeCursor
.on("mousedown", function () {
return self._onMouseDown.apply(self, arguments);
})
.on("mouseup", function () {
return self._onMouseUp.apply(self, arguments);
})
.on("mousemove", function () {
return self._onMouseMove.apply(self, arguments);
});
}
this.element[0].ontouchstart = function (e){
self._onMouseDown(e.touches[0]);
......
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