Extra space when changing between portrait and landscape on tablets
See original GitHub issuepure-react-carousel
version: masterreact
version: v16.8.6browser
used: Chrome v 78.0.3904.108node
version:
Relevant code or config:
N/A
What you did:
Change orientation from portrait to landscape on any tablet.
What happened:
If we are at the last slide and changing on landscape, there is a space left out to the right, past the limit that you can normally navigate using the navigation buttons. When we first navigate to the left, the space goes away and everything works fine.
Reproduction:
Attached some screenshots:
Tablet, scrolled to the last slide
Switch orientation to landscape -> see the space to the right
Navigate to the left and try go to the last slide -> normal behaviour
Problem description:
From what I saw, the problem comes from the translateX property value which at the last slide it is different on portrait/landscape. Also the currentSlide value is slightly different on landscape/portrait.
Not good for UX because when changing orientation you get in a state that you are not supposed to get into.
Suggested solution:
I’m not sure
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
css - Issue with white space when changing from landscape to ...
A website I am working on for a personal project requires a large background image (full screen) below this just offscreen is my...
Read more >How To Fix Android Tablets - Force All Apps Into Landscape ...
Your browser can't play this video. Learn more. Switch camera.
Read more >Android Tablet How To Rotate Screen Instructions, Guide, Help
Samsung Galaxy Tab Tablets at Amazon - https://amzn.to/35aycSEHow To Lock Screen on Samsung Android Tablet - Samsung Tablet How To Rotate ...
Read more >How to Switch to Portrait or Landscape Mode on Android
1. Swipe down from the top of the screen. This displays the Quick Settings icons at the top as well as your notifications....
Read more >Change screen size and orientation of canvas apps
Under Orientation list, select Portrait or Landscape. Orientation for phone layout. (Tablet apps only) Under Aspect ratio, perform either of ...
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 FreeTop 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
Top GitHub Comments
@hectordommo can you create code sandbox example for it, it would be helpful.
The best workaround at the moment is probably listening for rotation events, and programmatically modifying
currentSlide
on those events of choice, as is mentioned in #272 and #116.