antiscroll icon indicating copy to clipboard operation
antiscroll copied to clipboard

Native scrollbar not being hidden in latest Chrome on Lion

Open davemckenna01 opened this issue 11 years ago • 10 comments

Looks like the latest Chrome update has something funny going on with hiding native scrollbars. See screenshot - you get the custom antiscroll scrollbar overlaid on top of the native one. Screenshot is from Chrome 25.0.1364.99.

A co-worker has 24.0.1312.56 and this problem doesn't occur.

Related to issue #40 and the fix proposed in that commit, but the fix doesn't work on Lion.

antiscroll-chrome

davemckenna01 avatar Feb 25 '13 18:02 davemckenna01

@davemckenna01 Issue #40 has a proposed commit that fixes this.

Radagaisus avatar Feb 25 '13 18:02 Radagaisus

@Radagaisus @pirxpilot The problem still persists in Chrome 25 on Lion. I'm looking in to it, but so far no luck.

davemckenna01 avatar Feb 26 '13 15:02 davemckenna01

@davemckenna01 Hi, we use a slightly modified version of Antiscroll, but I just copy pasted the suggested fix into our code and it worked.

Radagaisus avatar Feb 26 '13 16:02 Radagaisus

@Radagaisus on Lion though? B/c I copy pasted the code as well and no change. But I did just get it to work with the CSS fix @epitrochoider suggested in the comments in issue #40 :

.box-wrap ::-webkit-scrollbar { width: 0px; height:0px; }

However, maybe the following would be a better solution to include in the library css file:

.antiscroll-wrap ::-webkit-scrollbar { width: 0px; height:0px; }

davemckenna01 avatar Feb 26 '13 16:02 davemckenna01

Does this actually remove the scrollbar though? I'm using the latest version, Chrome 25 and Lion. On the demo page, if you select all the text inside the scrollable region with the mouse, the region scrolls to the right and the native scroll bar becomes visible. Screen Shot 2013-02-27 at 11 39 27

Frobitz avatar Feb 27 '13 11:02 Frobitz

My PR fixes this. The demo at http://learnboost.github.com/antiscroll/ continues to use a version of the code that is still broken in Chrome Lion.

Check out my branch chrome-25-lion-issues and open the demo index.html file, you won't see two scrollbars.

davemckenna01 avatar Feb 27 '13 22:02 davemckenna01

Can we do a pull request for the demo as well? Thanks!

On Wed, Feb 27, 2013 at 2:06 PM, Dave McKenna [email protected]:

My PR fixes this. The demo at http://learnboost.github.com/antiscroll/continues to use a version of the code that is still broken in Chrome Lion.

Check out my branch chrome-25-lion-issueshttps://github.com/davemckenna01/antiscroll/tree/chrome-25-lion-issuesand open the demo index.html file, you won't see two scrollbars.

— Reply to this email directly or view it on GitHubhttps://github.com/LearnBoost/antiscroll/issues/46#issuecomment-14203291 .

Guillermo Rauch LearnBoost CTO http://devthought.com

rauchg avatar Feb 27 '13 22:02 rauchg

@davemckenna01 Ah, good to know. Thanks!

Frobitz avatar Feb 28 '13 09:02 Frobitz

@davemckenna01 I've updated the demo page to use the current antiscroll.js. Seems to fix the error on Windows/Chrome, can you confirm if it works for you (Lion/Chrome) ? We can then happily close this.

gnatih avatar Apr 03 '13 05:04 gnatih

@gnatih the issue persists on Lion/Chrome 25, just checked. It's a weird bug - the only way I've found to fix it is in my PR. The solution seems crazy but it works.

davemckenna01 avatar Apr 03 '13 05:04 davemckenna01