-
AuthorPosts
-
October 1, 2014 at 4:06 pm #328215
Note: Everything works fine in IE, Firefox, and Android.
Not Tested On: Safari
Problem:With Chrome & Opera after the map is “Clicked” the content jumps up about 150 Pixels North and cannot be seen again.
This does not happen with “Touch”
This does not happen with “Tap”
This does not happen with “Double Tap”Please see Screenshot #1 (BEFORE CLICK) and Screenshot #2 (AFTER CLICK)
Request: Any suggestions on where the problem might lie or approach to debug it?
Thanks in advance for any help on this…BEFORE CLICK SCREENSHOT:
AFTER CLICK SCREENSHOT:
- This topic was modified 10 years, 1 month ago by Yigit. Reason: fixed HTML
October 1, 2014 at 5:49 pm #328333I have traced this to a “mousedown” event bubble within Mapbox.js & will post a solution if/when I find it in case anyone else uses mapbox maps.
October 2, 2014 at 11:58 pm #329357Hey!
Can you post the link to your page where we can see the issue please?
Cheers!
YigitOctober 3, 2014 at 1:03 am #329375Yigit:
I traced the error to line 2098 of the mapbox.js file:
this._map._container.focus(), t.scrollTo(s, o)
Unfortunately the file is minified so I’m not certain what’s going on. I irc’d with their support person, and they (Mapbox) said they would look into it, although they don’t seem to be in any hurry. I forked Mapbox’s source files from GitHub but discovered it was more or less useless without the map image tiles from their website. I then moved on to something else. Although I prefer the look of mapbox maps, they probably aren’t worth messing with at this point so perhaps I should shift over to Google Maps API v3 for the time being.
Now that I’m thinking about it, perhaps I could identify the Enfold div that is scrolling up and then add an event listener to the Enfold div that is responding to the event bubble started by Mapbox’s scrollTo(s,o) directive & cancel it before it executes.
Any thoughts you might have on this are welcome. If you still want to look at the page, let me know & I will open a pinhole on the firewall for you to get through.
- This reply was modified 10 years, 1 month ago by technorodent.
October 3, 2014 at 10:58 pm #329928Time is of the essence here, so I ended up having to move on. I floated the fieldset over the map, gave it a white background, which hid the top section of the map. I then extended the size of the map to compensate for the fieldset overlay. While this is certainly not a fix, it works for the time being and I can come back to this later.
Thanks for your help.
October 5, 2014 at 10:37 am #330429Hi!
Thank you for posting your findings and contributing to making Kriesi themes better.
I am glad you found a solution to your issue,
Cheers!
Arvish -
AuthorPosts
- You must be logged in to reply to this topic.