forked from conversionxl/aybolit
-
Notifications
You must be signed in to change notification settings - Fork 0
feat(cxl-ui): add ability for main content to be scrolled from the ou… #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4f623e4
feat(cxl-ui): add ability for main content to be scrolled from the ou…
anoblet c6becd0
Merge branch 'master' of github.com:anoblet/aybolit into external-scroll
anoblet 8d85bc0
refactor(cxl-ui): use normalize-wheel for scrolling
anoblet 7b8cc78
refactor(cxl-ui): use forked esm version of normalize wheel
anoblet b32eddd
refactor(cxl-ui): add/remove listener depending on screen size
anoblet 42a8113
refactor(cxl-ui): unsort imports
anoblet 8c5f6cf
refactor(cxl-ui): change bound wheel event listener to be protected
anoblet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we have to fork this anyway, perhaps we can also drop some of the general compatibility check code from it? If not, that's fine, too, but worth a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how much I can trim away without there being regressions in certain browsers but I can take a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a PR we can shoot at normalize-wheel upstream way?
I'm going to publish our current ESM build on our custom registry, but ideally we'd at one point get back to using global NPM for this.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to structure it as a PR in the first place. I was unsure what the best practice was for offering CJS/ESM in the same package unbundled. A separate directory under
srcand leverage thebrowserfield inpackage.json?I ended up just installing from a branch to save time. I'll see if I can figure out how to do this though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created a PR here: basilfx/normalize-wheel#3
In the meantime I believe we could rely on this: https://www.npmjs.com/package/normalize-wheel-es
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like they did the same thing, and never bothered to PR.
Let's see what happens in basilfx/normalize-wheel#3 before we make a decision.
Ideally that PR would be a bit less noisy, or code-unified.. but I'm not so well-versed to understand how to pull it off.