Bug Tracker

Opened 9 years ago

Last modified 8 years ago

#8951 closed enhancement

jQuery could handle firefox bug 383026 with .scrollLeft() — at Initial Version

Reported by: arieleo Owned by:
Priority: low Milestone: 1.7
Component: offset Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

Description

Hi, This is a suggestion to handle a bug in Firefox (383026) rather than an actual jQuery bug.

Using jQuery .scrollLeft() on an element with a direction of RTL will return negative values in Firefox.

Although this is caused by a bug in Firefox and not in jQuery, given that jQuery is very useful in unifying browsers behaviour for the JavaScript programmer, maybe it should also unify this behavior across browsers.

For example, one need only to set an element's opacity with jQuery and forget it. jQuery will deal with the different opacity techniques for the different browsers.

Therefore, my suggestion is to add to jQuery's .scrollLeft the ability to take into consideration the rendering engine and to return a unified positive value, instead of Firefox's negative one.

Documentation for the Firefox bug is located here: https://bugzilla.mozilla.org/show_bug.cgi?id=383026

Your review of this suggestion is appreciated. Ariel

Change History (0)

Note: See TracTickets for help on using tickets.