File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -524,18 +524,18 @@ export function generateTrigger(
524
524
}
525
525
526
526
// ======================= Action: PointDown ========================
527
- const pointDownToShow = showActions . has ( 'pointDown ' ) ;
528
- const pointDownToHide = hideActions . has ( 'pointDown ' ) ;
527
+ const pointDownToShow = showActions . has ( 'pointerDown ' ) ;
528
+ const pointDownToHide = hideActions . has ( 'pointerDown ' ) ;
529
529
if ( pointDownToShow || pointDownToHide ) {
530
- cloneProps . onPointDown = ( event : React . PointerEvent < HTMLElement > , ...args : any [ ] ) => {
530
+ cloneProps . onPointerDown = ( event : React . PointerEvent < HTMLElement > , ...args : any [ ] ) => {
531
531
if ( openRef . current && pointDownToHide ) {
532
532
triggerOpen ( false ) ; // to hide
533
533
} else if ( ! openRef . current && pointDownToShow ) {
534
534
setMousePosByEvent ( event ) ;
535
535
triggerOpen ( true ) ;
536
536
}
537
537
// origin methods
538
- originChildProps . onPointDown ?.( event , ...args ) ;
538
+ originChildProps . onPointerDown ?.( event , ...args ) ;
539
539
}
540
540
}
541
541
// ======================= Action: Click ========================
@@ -556,7 +556,7 @@ export function generateTrigger(
556
556
} ;
557
557
}
558
558
559
- // Click/PointDown to hide is special action since click popup element should not hide
559
+ // Click/PointerDown to hide is special action since click popup element should not hide
560
560
useWinClick (
561
561
mergedOpen ,
562
562
clickToHide ,
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ export type BuildInPlacements = Record<string, AlignType>;
104
104
105
105
export type StretchType = string ;
106
106
107
- export type ActionType = 'hover' | 'focus' | 'click' | 'contextMenu' | 'pointDown ' ;
107
+ export type ActionType = 'hover' | 'focus' | 'click' | 'contextMenu' | 'pointerDown ' ;
108
108
109
109
export type AnimationType = string ;
110
110
You can’t perform that action at this time.
0 commit comments