-
-
Notifications
You must be signed in to change notification settings - Fork 608
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
Update full screen API. #358
Update full screen API. #358
Conversation
I will need testers. Here is a test url: http://avandecreme.github.io/openseadragon-debug-site/ Things to test:
I already tested:
Tests needed:
|
Got access to IE11 and fixed a bug. |
On Windows 7... IE 11 FF 27.0.1 Chrome 33.0.1750.154 m Opera 20.0.1387.77 |
Actually I have 2 tests here:
So it seems to work fine for you. |
Oh ok, sorry :) Then yes works fine. |
On Mac Mavericks, tested on Firefox, Chrome, Safari and Opera. Everything worked fine except you can't type in fullscreen in Safari. |
Good. |
I ran it through IE11 dev tools in IE8, 9, 10 modes - all gave the error "Automation server can't create object" at the "var wscript = new ActiveXObject("WScript.Shell");" line. I could get it to work by trusting the site and relaxing the activex security settings as described in the last answers here That may be a problem for regular users....just thought I'd mention it in case it helps. Or, it could be a problem with just the legacy version emulation...still need test on real IE versions. :) |
Ok thanks for testing. |
That reminds me...The F11 just did a pseudo full page where the title and menu bars etc. are removed giving the page as much real estate as possible. Not a real full screen. That too could be just a missing feature of the emulation mode, but I think that may be what you'd get on the real versions if I recall...I could be wrong. |
Ok, I removed the activeX part so that only real full screen mode is supported. Also, it seems that Element.ALLOW_KEYBOARD_INPUT might crash old Safari. See code-lts/jquery-fullscreen-plugin#11 |
Alright, I figured out what was going on with Chrome. I am wondering if we are dropping full screen support on old Safari by using the lower case S though. |
How old of a Safari are you talking about? If you go by the browser usage stats: http://caniuse.com/usage_table.php ...looks like there's a little bump at 5.1, but 5.0 and certainly 4.x don't seem to be getting much use. I guess we still haven't defined an explicit browser support list, but there's some discussion in #106; perhaps it's worth revisiting. |
If we want to support webkitRequestFullScreen, it should be easy enough to test for the existence of The code changes look good. In the absence of response from @bgilbert or @johndyer, I'm happy to go either way on the license. It does seem like a full rewrite, FWIW. |
…thod. Remove old license.
Good idea. I added support for old Webkit just in case some old Safari supports it but not the new API. I also removed the license. I updated the test page here: http://avandecreme.github.io/openseadragon-debug-site/ |
Tested in IE 8, 9, 10 emulation on IE 11... toggle fullscreen button has no effect (no errors reported), viewer button does full page. |
Thanks! The comportment sounds good to me. I think it is up to the API user's to properly handle the case where the full-screen is not supported (like we do in OSD by switching to full-page instead). |
Tested again on Mac Firefox, Chrome and Safari; looking good. Code looks good too. Is this ready to land? |
Yes! Thanks for testing. |
Thank you for making it happen! |
While fixing #347 I ended up updating the whole API as the methods names where not up to date.
I am wondering if we can remove the MIT license. The only code which is potentially under MIT is the definition of the fullScreenApi object. All other code has been rewritten.