asmyshlyaev177/react-horizontal-scrolling-menu

[BUG] RTL only scrolls 1 item at a time in Firefox

Closed this issue · 2 comments

Describe the bug
RTL only scrolls 1 item at a time in Firefox.

To Reproduce

  1. Open Firefox
  2. Go to https://codesandbox.io/s/rtl-8lix35?file=/src/index.tsx
  3. Click on the arrow button to scroll
  4. See Items only scroll 1 at a time

Expected behavior
The behavior should be the same as ltr using group scroll. scrolling the group (not only 1 item)

Tnx for reporting, will fix.

Sorry for the delay, for now just monkey patching but it should work - https://codesandbox.io/s/rtl-ng3bq9?file=/src/index.tsx
Changes in index.tsx and arrows.tsx files, cat search by isFirefox

Keep this issue open for a while, probably will make more elegant solution or will update README at least. Just don't have much free time recently and this project won't pay me a salary, but have few ideas about how to improve it.