|07-21-2017, 02:01 PM||#1|
Join Date: Jul 2017
Fixed postion elements moving in Chrome on a 24 inch screen
I am I am building a wide, horizontally scrollable virtual gallery where the images on the gallery wall are individually linked to their full-screen pages. The site has two narrow fixed menu bars on either side.
When viewing through Chrome (I’ve tested IE, FF, and Safari), the fixed position sidebar menus scroll with the “drag scroll” classed container DIV. There is hesitation and scurrying that makes me think there’s a conflict. I have media queries for 4 different screen sizes but I don’t think this is the problem. The very same window dimensions on a 21-inch screen function properly until dragged to the 24-inch screen. The fixed elements lose their position on a 24-inch screen after reaching a height of roughly 720 pixels. Limiting the max width or height of the container DIV with device screen media query did not solve this. Somehow Chrome knows when it’s on a 24-inch screen and when it’s not. Variations of “webkit transform” styling codes did not help either.
In order to demonstrate I have reduced the page to its essential componants, including all and device screen media querries, but the problem I am describing can only be witnessed on a 24 inch screen.This simplified version is simply a fixed position element ( top right corner) inside the image container “widecentre” wrapped by a relative positioned container “ widewrapper”.
The page demo page is here http://www.moisdelaphoto.ca/R.html.
It should display correctly on any screen at any size in Firefox, Safari and Internet Explorer, but in Chrome the fixed element will move while scrolling on a 24 inch screen.
I'm stumped and would greatly appreciate any suggestions
Here is the code:
cursor : -o-grab;
cursor : -moz-grab;
cursor : -webkit-grab;
<div class="dragscroll" id="widewrapper">