frsource / light-scrollbar Goto Github PK
View Code? Open in Web Editor NEWLight-scrollbar allows you to build custom scrollbar, light scrollbar with just one line of code
Home Page: https://www.frsource.org/light-scrollbar
License: MIT License
Light-scrollbar allows you to build custom scrollbar, light scrollbar with just one line of code
Home Page: https://www.frsource.org/light-scrollbar
License: MIT License
Hi Szymon, ๐ Phrase sends regards. We ran into minor bug with scrollbar.
Describe the bug
When user clicks on scrollbar ( or grab it and scroll with it ) and then release mouse, scrollbar stays active, so when user tries to select text in different element the scroll follows mouse move. Video should describe it better - https://share.getcloudapp.com/4gu4drPW
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Content in attached container is scrolled
Screenshots
Content in attached container is no affected by mouse interactions outside of container
Please complete the following information:
Additional context
I tried to fix it by changing line 396 from
outerElement.addEventListener("click", clickHandler);
to
outerElement.addEventListener("mousedown", clickHandler);
outerElement.addEventListener("mouseup", mouseUpHandler);
I hoped it would help as click
event fires after mouseup
, but it helped only partially. For some reason y-axis scrollbar was more responsive to this change, but x-axis didn't change it behavior at all, especially when I tried to select text under the attached element ( before mount, after mount sections )
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are awaiting their schedule. Click on a checkbox to get an update now.
.github/workflows/ci.yml
actions/checkout v3
pnpm/action-setup v2.2.4
actions/setup-node v3
actions/checkout v3
pnpm/action-setup v2.2.4
actions/setup-node v3
actions/checkout v3
pnpm/action-setup v2.2.4
actions/setup-node v3
cypress-io/github-action 4caf093719a6269a035c271e3f4114a0f82c671e
actions/upload-artifact v3
actions/checkout v3
pnpm/action-setup v2.2.4
actions/setup-node v3
actions/checkout v3
pnpm/action-setup v2.2.4
actions/setup-node v3
peaceiris/actions-gh-pages v3
package.json
@frsource/frs-hide-scrollbar ^2.0.7
@algolia/client-search 4.17.1
@frsource/frs-replace 4.1.1
@semantic-release/changelog 6.0.3
@semantic-release/commit-analyzer 9.0.2
@semantic-release/git 10.0.1
@semantic-release/github 8.1.0
@semantic-release/npm 10.0.3
@semantic-release/release-notes-generator 11.0.2
@typescript-eslint/eslint-plugin 5.59.8
@typescript-eslint/parser 5.59.8
concurrently 8.0.1
cpy-cli 4.2.0
cypress 12.13.0
cypress-real-events ^1.7.4
eslint 8.41.0
eslint-config-prettier 8.8.0
eslint-plugin-cypress 2.13.3
eslint-plugin-eslint-comments 3.2.0
http-server 14.1.1
incstr 1.2.3
lodash-es ^4.17.21
microbundle 0.15.1
prettier 2.8.8
renamer 4.0.0
sass 1.62.1
semantic-release 21.0.2
ts-essentials 9.3.2
typescript 5.0.4
vitepress 1.0.0-beta.1
vue 3.2.47
wait-on ^7.0.1
node >=18.0.0
Hi Szymon, me again ๐
Describe the bug
Scrollbar calculates --ls-bar-y-top
variable wrong when it has a lot of content.
To Reproduce
Steps to reproduce the behavior:
Add Dynamically item
button at least 70 times ( a bit masochistic approach ๐ ) or just add v-for with at least 100 elements in scrollbarTemplate.vue
- <span v-for="it in 100" :key="it">Some Content<br/></span>
Expected behavior
Scrollbar is positioned at container top and doesn't go higher
Please complete the following information:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.