Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Aug 30, 2014
1 parent 84a5768 commit 452026b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/idangerous.swiper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1171,18 +1171,6 @@ var Swiper = function (selector, params) {
}
}

function normalizeWheelSpeed(event) {
var normalized;
if (event.wheelDelta) {
normalized = (event.wheelDelta % 120 - 0) === -0 ? event.wheelDelta / 120 : event.wheelDelta / 12;
} else {
var rawAmmount = event.deltaY ? event.deltaY : event.detail;
normalized = rawAmmount % 3 ? (rawAmmount % 1 ? rawAmmount * 10 : rawAmmount) : rawAmmount / 3;
}
return normalized;
}

// console.log(we, delta, normalizeWheelSpeed(e));
if (!params.freeMode) {
if ((new Date()).getTime() - lastScrollTime > 60) {
if (delta < 0) _this.swipeNext();
Expand Down

0 comments on commit 452026b

Please sign in to comment.