Skip to content

Commit 6a95991

Browse files
authored
Ignore from grid operation events when touched with multiple fingers. (#375)
1 parent 29caebe commit 6a95991

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

packages/cheetah-grid/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cheetah-grid",
3-
"version": "1.7.5",
3+
"version": "1.7.6",
44
"description": "Cheetah Grid is a high performance grid engine that works on canvas",
55
"keywords": [
66
"spreadsheet",

packages/cheetah-grid/src/js/core/DrawGrid.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,6 +1364,12 @@ function _bindEvents(this: DrawGrid): void {
13641364
}
13651365
}
13661366

1367+
if (e.targetTouches.length > 1) {
1368+
// If touchstart with multiple fingers,
1369+
// it is not considered as an operation event.
1370+
return;
1371+
}
1372+
13671373
longTouchId = setTimeout(() => {
13681374
//長押しした場合選択モード
13691375
longTouchId = null;

packages/vue-cheetah-grid/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-cheetah-grid",
3-
"version": "1.7.5",
3+
"version": "1.7.6",
44
"description": "Cheetah Grid for Vue.js",
55
"main": "lib/index.js",
66
"unpkg": "dist/vueCheetahGrid.js",

0 commit comments

Comments
 (0)