Skip to content

Commit 667f733

Browse files
committed
adjusted mousepad scroll sensitivity
1 parent 4ea82bc commit 667f733

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

site/js/main.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Coverflow.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,7 @@ class Coverflow extends Component {
325325
}
326326

327327
_handleWheel(e) {
328-
329-
let delta = e.deltaY * (-120);
328+
let delta = Math.abs(e.deltaY) === 125 ? e.deltaY * (-120) : e.deltaY < 0 ? -600000 : 600000;
330329
let count = Math.ceil(Math.abs(delta) / 120);
331330

332331
if (count > 0) {
@@ -354,8 +353,8 @@ class Coverflow extends Component {
354353

355354
_handleTouchMove(e) {
356355
e.preventDefault();
357-
const {displayQuantityOfSide} = this.props;
358-
const {width} = this.state;
356+
const { displayQuantityOfSide } = this.props;
357+
const { width } = this.state;
359358

360359
let clientX = e.nativeEvent.touches[0].clientX;
361360
let lastX = TOUCH.lastX;

0 commit comments

Comments
 (0)