-
Notifications
You must be signed in to change notification settings - Fork 200
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
Click on map full screen triggers minimization of mobile browser tab bar #835
Comments
hey, still need help with this? |
Would be great to get some help with this, @Geet-S! Let us know what your thoughts are, or also feel free to send along a PR :) Happy to help as needed 😊 |
Hey hey @Geet-S 👋 Checking in to see if there's anything that we can do to assist here :) |
Hey sorry, I weirdly never got notified on your reply to me I don't know what's up with that. So, I don't really have any apple products to check on safari if it's in full screen or not like you described, but let me know if there is a way for me to test that out through some emulator of sorts, I'm kinda new to this :P I'll try to figure it out from there |
Hey @Geet-S 👋 No stress at all. You'd be welcome to send along something and I could test it on my end :) Seems like the following pages might have suggestions we could try:
Looks like we could scroll to the top to trigger it hiding, which could work as discussed in the SO question, or there's also some CSS and JS for the viewport in the first link. Which do you think would make sense? |
Some sources seem to say the scroll method doesn't work after iOS7 as apple 'fixed' it |
Sounds good, thanks for checking! Do you want to give it a shot as best as the research says, and then I can test it on the PR? |
yeah, sure, I am quite new to working on open source so I do have a few clarifications |
This all sounds great, @Geet-S! You might need to use plan CSS instead of Tailwind, which can be done within a Once this is done we can shift to an issue that's a bit easier for you to test yourself, if you'd be interested 😊 |
Alright thanks for clarifying! You don't have to answer this question but I'd like to just learn: is it not considered bad practice to mix vanilla CSS and tailwind? Also I'd love to take up another issue after this! I've been trying to get into open source and put it off for a long time because it seemed very daunting, I really appreciate you willing to let me find my way around here :) |
Happy to help, and thanks for your dedication here! Re your question: very valid :) We've found that in some cases we do need to use |
Alright, got it, thank you for the knowledge! |
Happy to share, and looking forward to the PR! :) |
Hey @andrewtavis |
Maybe we can trigger that based on a reference of the control? If memory serves me they all have ids, so we add an extra click action? |
Ah alright I'll try that, thanks |
Very welcome, @Geet-S! Thanks for discussing this :) Definitely makes sense that it's a bit more involved. |
Terms
Description
The MediaMap component can be seen on https://activist.org/events/ANY_INTEGER/about. One thing that would be a nice feature would be to make sure that the browser tab bar Safari, Chrome and other browsers would retract/minimize so that the map is the full screen and we don't have the browser search bar as well. An example with the search bar still visible at the bottom of the screen is:
The documentation for the FullscreenControl class can be seen here. By the looks of it there's a
fullscreenstart
event that could be used to potentially trigger the search/tab bar being minimized.Contribution
Would be happy to support on this or get to it myself later 😊 This would be a great feature to add into the already strong map component, as the user experience is a bit reduced when the browser controls are visible on full screen.
The text was updated successfully, but these errors were encountered: