-
Notifications
You must be signed in to change notification settings - Fork 111
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
Last update introduces a bug on vuescroll-panel #31
Comments
Hi! What's the version of your vuescroll? |
4.5.27 |
I think this is not the bug of vuescroll, it's Vue's bug instead. |
The thing is I've managed to fix it by setting margin-right: -17px and overflow-y: scroll on the .vuescroll-panel class. So you could test it a bit and introduce that properties without wait to hover. Did you reproduce the bug? |
|
Ok, thanks. |
@doctorsirius |
Refactor some codes for this bug, can have a try again in the next release. |
Try |
Hi! Sorry for the delay, I was busy, many thanks for the updates. I will try to explain how I had to setup things to deal with some problems with your previous version of your component, sadly I'm not a developer so I can only explain you what I had to do.
So, if I use scrollOptions as I described I still get the issue, unless I set the .vuescroll-panel to the properties I told you. I understand that I'm telling the component to make vertical scroll appear, by setting scrollingY to true but that shouldn't be the problem, with that I just telling your component to force scroll to appear, but the component styled scroll, not the Chrome native one, and as I told you it appears just on refresh, the moment you hover the panel the native scrollbar dissappear. Conclusion: maybe the problem comes when setting scrollOptions, maybe something is not initialized. For me, now that I can remove those scrollOptions the problems are gone, so for me the issue is fixed, but it will still happen if someone set scrollOptions. Hope that helps. |
Thanks for your detailed description! And what you mean is your problem has been solved , but when setting OK, I think it's weird , and I just tested in my local , and set ops to |
* refactor: code structure * tweak: readme * tweak: demo style * tweak: readme * fix: rail's borderradius cannot be dynamiclly set * tweak: dynamically set data * fix: internalscrollTop should default to 0 * tweak: the position of preventDefault options in global-config.js * perf(touch): optimize scroll experience * tweak: readme * buid: release 4.5.13 * changelog * chore: format code with prettier * tweak: manully add height or width to vuescroll elm when mounted * build: release 4.5.14 Feature: Add sizeStrategy option for vuescroll To decide use a numberic size or a percent size for vuescroll while parent dom's size maybe a numberic value or a percent value close #26 * build: release 4.5.15 Hot Fix: Vuescroll's width and height should default to `100%` in case of getting an incorrect size in slide mode . * tweak: bar/rail width/height default from 5px to 6px * tweak: readme.md WIP: refactor unit test module * tweak: readme WIP: refactor unit test module * chore: add unit test * tweak: ci * tweak: ci * tweak: ci * tweak: ci * build: release 4.5.16 chore: add unit test fix: window onresize may throw an error * fix: typo * fix: rename comonent to component * tweak: readme * chore: delete useless files * tweak: Supplement Readme * tweak: readme * tweak: readme * tweak: readme * tweak: readme * tweak: readme * tweak: readme * tweak: readme * tweak: readme * tweak: readme * tweak: readme * tweak: inspired link in readme * tweak: readme * tweak: image in readme * tweak: readme-zh * tweak: readme * feat(api): Add scrollIntoView api that allows you scroll an elment into view * build: 4.5.17 * changelog * tweak: readme * tweak * tweak * tweak * tweak * tweak readme * update inspire * fix: get incorrect hash when component mounted * build: 4.5.18 * changelog * chore: tweak indent * fix: incorrect bar position when there is a error of scrollHeight in browser * chore: fix broken demo link * chore: strip license ext * perf(scrollbar): make the position of scrollbar more accurate * build: 4.5.19 * chore: changelog * 4.5.20 * fix: update bar when mouse enters or moves * build: 4.5.21 * changelog * chore: tweak the intro of vuescroll in readme * perf(bar): refactor bar and rail * build: 4.5.22 * chore: changelog * chore: delete deprecated config * build: 4.5.23 fix: Vuescroll cannot detect scroll when parent dom's size is not a fixed value (#29) * chore: changelog * chore: fix typo * tweaks: readme * feat(bar): support dragging in mobile * build: 4.5.24 * chore: changelog * build: 4.5.25 tweaks: Wrap `isSupportTouch` by a function to pass ssr exam * build: 4.5.26 tweaks: Call e.preventDefault when dragging the bar. * feat(bar): Add showDuration to controll the show time of bars * fix(silde-mode): what scroll-panel's display style is inline-block may disrupt content style (@30) * fix(silde-mode): what scroll-panel's display style is inline-block may disrupt content style (#30) * buid: 4.5.27 * chore:changelog * teeaks: changelog * tweaks: readme * tweak: readme * tweak: readme * fix: typo in createPanel.js * feat: Support customize svg in pull-refresh or push-load * build: 4.5.29 * chore: changelog * chore: changelog * fix: The content height while push-load is enable * build:4.5.30 * chore: changelog * tweak: set 100% when vbar's size is 0 * update issue templates * fix: add min-width to scrollPanel, scrollContent(#32) * build: 4.5.31 * chore: changelog * fix lint * fix: update bar in setTimeout (#31) * feat(api): add triggerRefreshOrLoad Api that you can trigger refresh or load directly * build: 4.5.32 * changelog * chore: wx.png * fix typo * fix: don't call complete while __isDecelerating is false * feat: add `direction info for event handle` * build: 4.5.23 * chore: changelog * tweaks readme * chore: change website address * tweak: readme * chore: tweak shields address * tweak: readme (#34) * fix: add z-index to rail * build: 4.6.0 * chore: changelog * feat: add border-radius to rail * 4.6.1
Same bug here |
On the last update, vuescroll-panel seems to not be set correctly, and the margin-right: -17px, used to hide the browser scollbar and the overflow-y: scroll, don't appear until you hover the panel, you can force the browser scrollbar to appear by refreshing the browser, be sure your mouse cursor is not hovering the panel.
That bug forced me to specify two those properties on my styles in order to fix it.
Chrome version: 61 (I'm using Electron)
OS: Windows
The text was updated successfully, but these errors were encountered: