We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b27fa5f commit b98267dCopy full SHA for b98267d
src/main.ts
@@ -515,7 +515,11 @@ export default class ScreenShot {
515
if (event instanceof MouseEvent && event.button != 0) return;
516
517
// 当前处于移动端触摸时,需要在按下时判断当前坐标点是否处于裁剪框内,主动更新draggingTrim状态(移动端的move事件只会在按下时才会触发)
518
- if (!isPC() && event instanceof TouchEvent && this.screenShotCanvas) {
+ if (
519
+ isTouchDevice() &&
520
+ event instanceof TouchEvent &&
521
+ this.screenShotCanvas
522
+ ) {
523
this.operatingCutOutBox(
524
event.touches[0].pageX,
525
event.touches[0].pageY,
0 commit comments