Browse Source

Use the slow jQuery path to animate scrollTop

This might be worth either splitting animate() into one for DOM
properties and one for pure-CSS or replacing the scrollTop animation
with something like margin or, better yet, transform.
pull/681/head
Chris Adams 11 years ago
parent
commit
5f71cf63ce
  1. 7
      source/js/Core/Core/VMM.Library.js

7
source/js/Core/Core/VMM.Library.js

@ -428,8 +428,9 @@ if(typeof VMM != 'undefined') {
} }
}, },
// TODO: Consider removing this as it's referenced by one commented line
delay_animate: function(delay, element, duration, ease, att, callback_function) { delay_animate: function(delay, element, duration, ease, att, callback_function) {
if (VMM.Browser.features.css.transitions) { if (VMM.Browser.features.css.transitions && !('scrollTop' in _att)) {
var _tdd = Math.round((duration/1500)*10)/10, var _tdd = Math.round((duration/1500)*10)/10,
__duration = _tdd + 's'; __duration = _tdd + 's';
@ -478,9 +479,7 @@ if(typeof VMM != 'undefined') {
_att = {opacity: 0} _att = {opacity: 0}
} }
if (VMM.Browser.features.css.transitions && !('scrollTop' in _att)) {
if (VMM.Browser.features.css.transitions) {
var _tdd = Math.round((_duration/1500)*10)/10, var _tdd = Math.round((_duration/1500)*10)/10,
__duration = _tdd + 's'; __duration = _tdd + 's';

Loading…
Cancel
Save