Closed joseph-d closed 5 years ago
@ayumihamsaki can you look into this? @joseph-d could you provide more information on the browser used?
The issue is present on the following browsers that I use:
Mobile: Chrome 71.0.3578.99 on Android 8.0.0; SM-G955F Build/R16NW Firefox 64.0.1 on Android 8.0.0; SM-G955F Build/R16NW
Desktop in mobile emulation: Chrome Version 71.0.3578.98 (Official Build) (64-bit) on Ubuntu Linux 18.10
I have also just tested it on Firefox Quantum 64.0 on Ubuntu 18.10 Desktop using a mobile responsive width and tabs and tables do still appear to scroll horizontally in Build 446 but I suspect this is just because Firefox on Desktop isn't doing mobile emulation properly.
If I change the storm files in /modules/system/assets/ui/ back to Build 443 versions, horizontal scrolling of tabs and tables works properly on all browsers listed above.
I also confirm bug, tested it on the:
I think it could be reproduced with the chrome device mode.
@ayumihamsaki @ayumihamsaki2 @Teranode could you guys look into this and see if you can find the issue? @joseph-d are you able to try incrementally applying changes from the 446 version of storm.css to find the issue?
@LukeTowers found the cause, will make PR tomorrow.
Sorry for late reply, only now checking my github. I will let w20k do this one as found the cause.
@LukeTowers, will wait for CSS minifier revert, and then push.
@joseph-d, @ayumihamsaki, I'd need your help with testing on mobile devices. I've tested tables with Chrome Emulator, only. Didn't have tabs examples.
So, In a few days, hopefully, will make a PR. Still, dealing with CssMinifier.
@w20k Sure, I'm ready to test as soon as the code is ready.
Is it possible to disable the tab switching when swiping if tabs are now scrollable? Reason is that if we use something like responsive tables in a tab and attempt to scroll horizontally, the tab switches which makes things very difficult to edit.
Tabs were previously scrollable before the latest update stopped them from scrolling. At that time (< build 444) scrolling tables within scrollable tabs worked perfectly fine without making the tabs scroll too. The two things worked independently. Therefore, I think that the issue mentioned by @AugmentBLU must've been introduced by the recent fix, although it doesn't seem to be happening for me.
Just a thought: Scrolling of tables was only previously possible by swiping the table header. Swiping the actual table didn't do anything, which made sense. If this fix is allowing the whole table to be swiped on some browsers then that could signify a difference in the way it worked prior to build 444.
@AugmentBLU could you give us more details on browser type/version/device & etc?
As, @joseph-d, I haven't had the same issue with table swipe while testing.
@joseph-d The swiping has been in place for a while I believe.
@w20k On my Samsung S9, if viewing a tab and the tab has any overflowing content or responsive elements that allow horizontal scrolling, the JavaScript swipe is being triggered and switching tabs so without great care, I cannot scroll horizontally.
It's due to data-slidable
within the tabs. Removing this stops the issue but it's part of the core and would be best if we could some how disable this or take it out as it's counter intuitive if tabs are scrollable. Why would we need swiping between tabs if they're scrollable?
I don't see any option to disable this on the backend, even though there is an option available within the JS itself.
Strangely enough, I have never experienced the tabs swiping in this way. Perhaps it isn't supported by my browser.
But, yes, I agree that there's really no point in having swipable tabs if the tabs themselves are scrollable. In my opinion, it's much more intuitive to scroll and select a tab than it is to have tabs (which might not even be visible) being swipable, especially when tables (which often appear within tabs) need to be scrollable with a swipe gesture!
That's exactly it @joseph-d - I have a table within a tab and has quite a few columns so using responsive tables allows for horizontal scrolling but with the swiping JS being active, as soon as you attempt to scroll the table, it switches tab.
I guess we have to disable it by default and add an option to enable it if needed. Partially already done)
I'm fine with disabling it by default and just leaving it like that for now until someone complains.
@AugmentBLU could you verify will swiping be disabled if you set data-slidable="false"
?
Will make a PR.
Or if we just remove data-slidable?
@LukeTowers that's an option, but for me, it feels like this option would be lost in the wild 😄
What do you mean?
@LukeTowers my bad forgot about tab.md
that it's already documented. Thought it wasn't.
Will make PR to address this issue.
@AugmentBLU made a PR. Could you re-test and comment on PR. Thanks! :)
Description:
Since the latest 444-446 build update, it is no longer possible to horizontally scroll backend tabs and tables on mobile view.
Steps To Reproduce:
Go to and backend view with tabs or tables that extend beyond the mobile viewport and try to swipe to scroll them horizontally as was previously possible prior to the Build 444 update. Swiping no longer results in the tabs or tables being scrolled.