Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit bffda92

Browse files
committed
build
1 parent b0aad85 commit bffda92

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

build/asscroll.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2438,6 +2438,10 @@ var Scroll_Scroll = /*#__PURE__*/function () {
24382438
window.scrollTo(0, -_this.scrollPos);
24392439
});
24402440
src_E.on('keydown', window, function (e) {
2441+
if (e.key === 'ArrowUp' || e.key === 'ArrowDown' || e.key === 'PageUp' || e.key === 'PageDown' || e.key === 'Home' || e.key === 'End' || e.key === 'Tab') {
2442+
window.scrollTo(0, -_this.scrollPos);
2443+
}
2444+
24412445
if (e.key === 'Tab') {
24422446
_this.toggleFixedContainer();
24432447
}
@@ -2508,7 +2512,7 @@ var Scroll_Scroll = /*#__PURE__*/function () {
25082512

25092513
if (this.options.limitLerpRate) {
25102514
this.time = performance.now() * 0.001;
2511-
this.delta = (this.time - this.startTime) * 60;
2515+
this.delta = Math.min((this.time - this.startTime) * 60, 1);
25122516
this.startTime = this.time;
25132517
}
25142518

0 commit comments

Comments
 (0)