[bug] fix 76105

This commit is contained in:
Sergey Luzyanin
2025-10-27 17:06:16 +03:00
parent 0144600d0e
commit 415b9f1976
2 changed files with 5 additions and 5 deletions

View File

@ -776,7 +776,7 @@
}
};
CMobileTouchManagerBase.prototype.checkTouchEvent = function(e)
CMobileTouchManagerBase.prototype.checkTouchEvent = function(e, checkPen)
{
if (!e)
return false;
@ -786,7 +786,7 @@
if (this.isTouchingInProcess())
return false;
if (e.pointerType === "touch")
if (e.pointerType === "touch" || (checkPen === true && e.pointerType === "pen"))
{
this.desktopTouchState = true;

View File

@ -4375,7 +4375,7 @@ function CThumbnailsManager(editorPage)
// events
this.onMouseDown = function (e) {
const mobileTouchManager = oThis.m_oWordControl ? oThis.m_oWordControl.MobileTouchManagerThumbnails : null;
if (mobileTouchManager && mobileTouchManager.checkTouchEvent(e)) {
if (mobileTouchManager && mobileTouchManager.checkTouchEvent(e, true)) {
mobileTouchManager.startTouchingInProcess();
const res = mobileTouchManager.mainOnTouchStart(e);
mobileTouchManager.stopTouchingInProcess();
@ -4563,7 +4563,7 @@ function CThumbnailsManager(editorPage)
this.onMouseMove = function(e)
{
let mobileTouchManager = oThis.m_oWordControl ? oThis.m_oWordControl.MobileTouchManagerThumbnails : null;
if (mobileTouchManager && mobileTouchManager.checkTouchEvent(e))
if (mobileTouchManager && mobileTouchManager.checkTouchEvent(e, true))
{
mobileTouchManager.startTouchingInProcess();
let res = mobileTouchManager.mainOnTouchMove(e);
@ -4678,7 +4678,7 @@ function CThumbnailsManager(editorPage)
this.onMouseUp = function(e, bIsWindow)
{
let mobileTouchManager = oThis.m_oWordControl ? oThis.m_oWordControl.MobileTouchManagerThumbnails : null;
if (mobileTouchManager && mobileTouchManager.checkTouchEvent(e))
if (mobileTouchManager && mobileTouchManager.checkTouchEvent(e, true))
{
mobileTouchManager.startTouchingInProcess();
let res = mobileTouchManager.mainOnTouchEnd(e);