mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-02-10 18:15:19 +08:00
[bug] fix 76105
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user