Offset with custom scrollMin()
See original GitHub issue#384 introduced a new bug.
When overwriting getScrollMinY
, using setMinimumScaleMode(ZoomPanLayout.MinimumScaleMode.FIT)
and setting the scale to 0 setScale(0.0f)
the content is shifted down or upwards with negative or positive value, respectively.
I illustrated it with a modified demo in my showcase#415 branch
Issue Analytics
- State:
- Created 6 years ago
- Comments:7
Top Results From Across the Web
scrollIntoView Scrolls just too far - Stack Overflow
Smooth scroll to the proper position. Here is better answer for the most cases. It uses scroll-margin and scroll-padding CSS rules.
Read more >Custom Scrollbars In CSS - Ahmad Shadeed
In this example, we want the scrollbar thumb to have an offset from all sides. Since it's not possible to use padding with...
Read more >scroll-margin - CSS: Cascading Style Sheets - MDN Web Docs
The scroll-margin shorthand property sets all of the scroll margins of an element at once, assigning values much like the margin property ...
Read more >Element size and scrolling - The Modern JavaScript Tutorial
Element size and scrolling · offsetWidth = 390 – the outer width, can be calculated as inner CSS-width ( 300px ) plus paddings...
Read more >Perfect Scrollbar
Minimalistic but perfect custom scrollbar plugin. ... href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" rel="stylesheet"> <!
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Now i need to make a PR, so it goes into the next release.
My understanding so far is that the constrained scrollY logic isn’t appropriate when the minimum scrollY is negative. I will try to finish the job this week.