Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10245: fix_firefox_scrolling_bug.diff

File fix_firefox_scrolling_bug.diff, 0.6 kB (added by nik.wakelin, 9 months ago)
  • src/effects.js

    old new  
    509509  var options = arguments[1] || { }, 
    510510    scrollOffsets = document.viewport.getScrollOffsets(), 
    511511    elementOffsets = $(element).cumulativeOffset(), 
    512     max = (window.height || document.body.scrollHeight) - document.viewport.getHeight();  
    513  
     512    max = document.viewport.getScrollOffsets[0] - document.viewport.getHeight();  
     513     
    514514  if (options.offset) elementOffsets[1] += options.offset; 
    515515 
    516516  return new Effect.Tween(null,