Skip to content

Commit 390ca19

Browse files
authored
Remove panning inertia when prefers reduced motion is enabled (#12631)
1 parent 2f65b40 commit 390ca19

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ui/handler_inertia.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ export default class HandlerInertia {
7070
}
7171

7272
_onMoveEnd(panInertiaOptions?: DragPanOptions): ?(EasingOptions & {easeId?: string}) {
73+
if (browser.prefersReducedMotion) {
74+
return;
75+
}
76+
7377
this._drainInertiaBuffer();
7478
if (this._inertiaBuffer.length < 2) {
7579
return;

0 commit comments

Comments
 (0)