mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-12 15:01:38 +03:00
interface: uncomment virtualscroller scroll catch
This commit is contained in:
parent
dda7dad2b1
commit
495be3bacb
@ -238,13 +238,13 @@ export default class VirtualScroller extends Component<VirtualScrollerProps, Vir
|
||||
|
||||
this.window = element;
|
||||
if (this.props.origin === 'bottom') {
|
||||
/* element.addEventListener('wheel', (event) => {
|
||||
element.addEventListener('wheel', (event) => {
|
||||
event.preventDefault();
|
||||
const normalized = normalizeWheel(event);
|
||||
element.scrollBy(0, normalized.pixelY * -1);
|
||||
return false;
|
||||
}, { passive: false });
|
||||
*/
|
||||
|
||||
window.addEventListener('keydown', this.invertedKeyHandler, { passive: false });
|
||||
}
|
||||
this.resetScroll();
|
||||
|
Loading…
Reference in New Issue
Block a user