weex-nuke
Version:
基于 Rax 、Weex 的高性能组件体系 ~~
13 lines (9 loc) • 422 B
JavaScript
// 当前手势速度 > 临界值 && 当前手势在某一方向的改变距离 < 当前方向的临界值
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (velocity, directionalChange, velocityThreshold, changeThreshold) {
return Math.abs(velocity) > velocityThreshold && Math.abs(directionalChange) < changeThreshold;
};
module.exports = exports['default'];
;