-
Notifications
You must be signed in to change notification settings - Fork 63
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
[Bug] This site appears to use a scroll-linked positioning effect. #46
Comments
@noeldelgado , ping. Can you see Stack Overflow question about gemini-scrollbar, when you will have a free time? Thanks. |
@Kristinita, I made a demo trying to answer your question on SO (I don't have a SO account 😟): 4) override gm-scroll-view's transform value, that will allow fixed position to work: .gm-scrollbar-container .gm-scroll-view {
transform: initial;
} 6.2) I will suggest listening to window.onorientationchange = function() {
var hash = location.hash;
if (hash) {
var top = document.getElementById(hash.replace('#', '')).offsetTop;
scrollingElement.scrollTo(0, top);
}
}; Hope that helps. |
1. Summary
2. Steps to reproduceI fork your pen — https://codepen.io/Kristinita/pen/JLWgvz → I made 1 change: I move I open https://s.codepen.io/Kristinita/debug/JLWgvz/nqMwveZBVOvk#relevance page → I force refresh cache. 3. Expected behaviorScrollbar in 4. Actual behaviorScrollbar in begin of page: 5. Environment
Latest browser versions at the time. Thanks. |
Sorry, I cannot check the debug mode, it says "This debug view expired". However I can see it's working on your fork, so, dunno. |
Your pen author is Captain Anonymous → you not logged on Codepen. Debug mode works only for logged users. It free. Thanks. |
Since gemini will move all nodes into a different element the initial scroll position will be lost. fork: https://codepen.io/noeldelgado/pen/1a5c2193f5f40164f354f17bab24ecbd/ |
@noeldelgado, thanks, it works! 3 problems: 1. eslinteslint output: 6:28 error 'GeminiScrollbar' is not defined no-undef
✖ 1 problem (1 error, 0 warnings) I can't find, how I can disable this error. my env:
browser: true
es6: true
jquery: true
extends: 'eslint:recommended'
parserOptions:
ecmaVersion: 9
sourceType: script
ecmaFeatures:
jsx: true 2. Horisontal scrollbarSee #59. 3. DefaultMaybe, would be better move your changes by default, to Thanks. |
@noeldelgado , I add answer to Stack Overflow. If you want add your own answer, I can delete my at any point in time. Thanks. |
1. Summary
If Gemini Scrollbar enable for me, I get warning message in Firefox built-in console.
2. Steps to reproduce
I open official demonstration page — http://noeldelgado.github.io/gemini-scrollbar/ → I open Firefox console.
3. Expected behavior
No warnings in console.
4. Actual behavior
5. Environment
Operating system and version:
Windows 10 Enterprise LTSB 64-bit EN
Firefox:
53.0 (64-bit)
Thanks.
The text was updated successfully, but these errors were encountered: