Draggable: Fixed positions include wrong scroll offset in Safari 4
|Reported by:||attaboy||Owned by:|
|Keywords:||draggable fixed position scroll offset safari||Cc:|
This re-opens bug #4142.
Safari 4 fixed the bug that this fix worked around, and as a result, fixed position scroll offsets are now wrong in Safari 4. (Ah, the joys of browsers.)
I have devised a simple patch which checks the Webkit version number before using the old workaround. Webkit 526 and higher is equivalent to Safari 4.
Basically, for tests like:
$.browser.safari && this.cssPosition == 'fixed'
The code would become:
$.browser.safari && $.browser.version < 526 && this.cssPosition == 'fixed'
Change History (8)
comment:7 Changed 7 years ago by scottgonzalez
- Resolution set to fixed
- Status changed from new to closed