Skip to content

feat: prevent wheel event when sidebar on boundary - #971

Closed
xyhp915 wants to merge 5 commits into
masterfrom
refactor/enhancement-sidebar
Closed

xyhp915 wants to merge 5 commits into
masterfrom
refactor/enhancement-sidebar

Conversation

@xyhp915

@xyhp915 xyhp915 commented Dec 21, 2020

Copy link
Copy Markdown
Collaborator

No description provided.

@xyhp915
xyhp915 requested a review from tiensonqin December 22, 2020 01:55
@tiensonqin
tiensonqin requested review from defclass and gyk December 22, 2020 04:42
(get-page match)))

(rum/defcs sidebar < rum/reactive
(stop-scroll-boundary-propagation-mixin #(js/document.querySelector "#right-sidebar"))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it OK to select a particular sidebar here?

Comment thread src/main/frontend/mixins.cljs Outdated
client-height (.-clientHeight target)
scroll-height (.-scrollHeight target)
scroll-top (.-scrollTop target)
top-boundary? (= scroll-top 0)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what problem does this PR solve, but do we need some tolerance here?

@tiensonqin
tiensonqin force-pushed the refactor/enhancement-sidebar branch from 2dcbc2a to 3a4bafb Compare December 23, 2020 04:12
@tiensonqin

Copy link
Copy Markdown
Contributor

@tiensonqin tiensonqin mentioned this pull request Jan 28, 2021
@tiensonqin

Copy link
Copy Markdown
Contributor

Closing this since it's already fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants