Skip to content

Commit

Permalink
Merge branch 'feat-hover-style' of https://github.com/didi/mpx into f…
Browse files Browse the repository at this point in the history
…eat-hover-style
  • Loading branch information
shangqunfeng committed Dec 19, 2024
2 parents b051823 + 2edbe94 commit 53813f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface IntersectionObserver {
}

export interface ScrollViewContextValue {
gestureRef: React.RefObject<any>
gestureRef: React.RefObject<any> | null
}

export const MovableAreaContext = createContext({ width: 0, height: 0 })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ export function pickStyle (styleObj: Record<string, any> = {}, pickedKeys: Array
}

export function useGesture ({ onTouchStart, onTouchEnd }: { onTouchStart: () => void, onTouchEnd: () => void }) {
const gestureRef: React.RefObject<any> = useContext(ScrollViewContext).gestureRef
const gestureRef: React.RefObject<any> | null = useContext(ScrollViewContext).gestureRef

const gesturePan = Gesture.Pan()

Expand Down

0 comments on commit 53813f1

Please sign in to comment.