Smooth-Div-Scroll icon indicating copy to clipboard operation
Smooth-Div-Scroll copied to clipboard

Bug with "RTL" direction on FF

Open amosmos opened this issue 13 years ago • 2 comments

Hi,

It took me hours to find this bug...

When you add dir="rtl" to the html tag (<html dir="rtl">) and use Smooth-Div-Scroll, than the script won't work on FireFox.

The only solution I found was to either remove the dir attribute or add dir="ltr" attribute to the div I activated Smooth-Div-Scroll on.

BTW - another issue with having dir="rtl" in the html tag is that it causes IE and Chrome to scroll to different directions.

Thanks, Amos

amosmos avatar Sep 10 '12 16:09 amosmos

Hi Amos!

Interesting! I haven't experimented with altering the reading direction myself before. Is there a demo page somewhere that I could look at? And this happens regardless of what content is in the scroller (images or text)?

/Thomas

tkahn avatar Sep 11 '12 06:09 tkahn

Yep, I was so frustrated that I just used you own demo from the website and just couldn't understand what is happening...

Eventually I got it.

Look here: http://www.boaideas.com/websites/gil/ (at the bottom)

There is dir="rtl" in the html tag, as w3 standards for Hebrew speaking websites. Then the only way to make the scroller work on FF is by adding dir="ltr" on its div.

Also look how in IE and Chrome, the direction of the scroll is different...

Thanks, Amos

http://www.linkedin.com/in/amosshacham

On Tue, Sep 11, 2012 at 9:44 AM, Thomas Kahn [email protected]:

Hi Amos!

Interesting! I haven't experimented with altering the reading direction myself before. Is there a demo page somewhere that I could look at? And this happens regardless of what content is in the scroller (images or text)?

/Thomas

— Reply to this email directly or view it on GitHubhttps://github.com/tkahn/Smooth-Div-Scroll/issues/32#issuecomment-8448595.

amosmos avatar Sep 11 '12 06:09 amosmos