enyojs / enyo

A JavaScript application framework emphasizing modularity and encapsulation
1.94k stars 285 forks source link

ENYO-3219: Contrain values produced by `refreshThresholds()` #1445

Closed yeram closed 8 years ago

yeram commented 8 years ago

The recently added refreshThresholds() method was not properly constraining the calculated threshold values in some cases. In this change, we fix that oversight.

At the same time, we refactor scroll() to replace its own threshold logic with the logic in refreshThresholds(), since the old logic has become redundant.

Enyo-DCO-1.1-Signed-Off-By: Gray Norton (gray.norton@lge.com)