Improve progress bar dragging detection
This commit is contained in:
@@ -19,7 +19,6 @@ export const ReaderProgressBarCurrentPageSlot = ({
|
||||
currentPagesIndex,
|
||||
pagesLength,
|
||||
isDragging,
|
||||
setIsDragging,
|
||||
boxProps,
|
||||
children,
|
||||
progressBarPosition,
|
||||
@@ -48,22 +47,6 @@ export const ReaderProgressBarCurrentPageSlot = ({
|
||||
}),
|
||||
...boxProps?.sx,
|
||||
}}
|
||||
onTouchEnd={(e) => {
|
||||
e.stopPropagation();
|
||||
setIsDragging(false);
|
||||
}}
|
||||
onTouchStart={(e) => {
|
||||
e.stopPropagation();
|
||||
setIsDragging(true);
|
||||
}}
|
||||
onMouseUp={(e) => {
|
||||
e.stopPropagation();
|
||||
setIsDragging(false);
|
||||
}}
|
||||
onMouseDown={(e) => {
|
||||
e.stopPropagation();
|
||||
setIsDragging(true);
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</Box>
|
||||
|
||||
Reference in New Issue
Block a user