File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " cheetah-grid" ,
3
- "version" : " 1.7.6 " ,
3
+ "version" : " 1.7.8 " ,
4
4
"description" : " Cheetah Grid is a high performance grid engine that works on canvas" ,
5
5
"keywords" : [
6
6
" spreadsheet" ,
Original file line number Diff line number Diff line change @@ -1341,7 +1341,14 @@ function _bindEvents(this: DrawGrid): void {
1341
1341
| null
1342
1342
| undefined = null ;
1343
1343
let longTouchId : NodeJS . Timeout | null = null ;
1344
+ let touchStartIntervalId : NodeJS . Timeout | null = null ;
1344
1345
handler . on ( element , "touchstart" , ( e ) => {
1346
+ // Since it is an environment where touch start can be used, it blocks mousemove that occurs after this.
1347
+ if ( touchStartIntervalId != null ) clearTimeout ( touchStartIntervalId ) ;
1348
+ touchStartIntervalId = setTimeout ( ( ) => {
1349
+ touchStartIntervalId = null ;
1350
+ } , 350 ) ;
1351
+
1345
1352
if ( ! doubleTapBefore ) {
1346
1353
doubleTapBefore = getCellEventArgsSet ( e ) . eventArgs ;
1347
1354
setTimeout ( ( ) => {
@@ -1462,6 +1469,11 @@ function _bindEvents(this: DrawGrid): void {
1462
1469
} ) ;
1463
1470
1464
1471
handler . on ( element , "mousemove" , ( e ) => {
1472
+ if ( touchStartIntervalId != null ) {
1473
+ // Probably a mousemove event triggered by a touchstart. Therefore, this event is blocked.
1474
+ return ;
1475
+ }
1476
+
1465
1477
const eventArgsSet = getCellEventArgsSet ( e ) ;
1466
1478
const { abstractPos, eventArgs } = eventArgsSet ;
1467
1479
if ( eventArgs ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-cheetah-grid" ,
3
- "version" : " 1.7.7 " ,
3
+ "version" : " 1.7.8 " ,
4
4
"description" : " Cheetah Grid for Vue.js" ,
5
5
"main" : " lib/index.js" ,
6
6
"unpkg" : " dist/vueCheetahGrid.js" ,
You can’t perform that action at this time.
0 commit comments