-
Notifications
You must be signed in to change notification settings - Fork 64
[FIX] RibbonMenu: reset scroll value on menu exploration #7194
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
base: saas-18.4
Are you sure you want to change the base?
Conversation
How to reproduce: - Open the ribbon menu - select "insert" - scroll the menu completely - select "Functions" The scroll is persistent from the previous menu and we arrive in the `Functions` menu already scrolled, issue that is highlighted by the fact that scrollbars are hidden by defaut on mobile browsers. This revision resets the scroll when ;oving from one menu section to the other. Task: 5106796
8548645
to
468e539
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋
test("Spam click on the arrow button scrolls a lot", async () => { | ||
let scrollTo = 0; | ||
//@ts-ignore - scrollTo is not defined in JSDOM | ||
sheetListEl.scrollTo = (arg: ScrollToOptions) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is scrollTo in JSDOM now ? 😮
Edit: NEVERMIND you added it in the jest.setup. For a second, I was hoping JSDOM was getting good 😢
.o-ribbon-menu-wrapper { | ||
max-height: 100%; | ||
|
||
&.scroll-top::before { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apparently this behaves dfferently on miobile devices (perharps per browser/os ) i will change the strategy
Currently, it is not quite clear that the ribbon menu can be scrolled as the scrollbars are not displayed by default on a mobile browser (or on some desktop browsers like firefox). This revision adds some style that will hint the possibility to scroll either to the bottom or top of the menu depending on the current scrolling value. Task: 5106796
468e539
to
9165a5a
Compare
How to reproduce:
The scroll is persistent from the previous menu and we arrive in the
Functions
menu already scrolled, issue that is highlighted by the fact that scrollbars are hidden by defaut on mobile browsers.This revision resets the scroll when ;oving from one menu section to the other.
[FIX] RibbonMenu: hint the scrollable menu
Currently, it is not quite clear that the ribbon menu can be scrolled as
the scrollbars are not displayed by default on a mobile browser (or on
some desktop browsers like firefox).
This revision adds some style that will hint the possibility to scroll
either to the bottom or top of the menu depending on the current
scrolling value.
Task: 5106796
Description:
description of this task, what is implemented and why it is implemented that way.
Task: 5106796
review checklist