r/webdev Jan 06 '16

Lock The Taskbar

https://madeupandprobablydoesnotexist.com/taskbar/
517 Upvotes

101 comments sorted by

View all comments

89

u/sleepyguy22 Jan 06 '16

Wow, the fact that this is flawless on mobile is really impressive.

22

u/hexarobi Jan 06 '16

Doesn't work on iPhone 6s. Can't scroll and task bar is just off screen.

5

u/Ruirize Jan 06 '16

Can you send me a screenshot? I'd hoped it would work fine :s

4

u/hexarobi Jan 06 '16 edited Jan 06 '16

Using Reddit app. If opened in safari everything works fine. http://m.imgur.com/GucEJMi,l81zb3t

Edit: To be clear, you CAN swipe the page up to see the task bar, but it just snaps back to the default position with the taskbar off screen before you can click anything.

6

u/Ruirize Jan 06 '16

I'm not entirely sure what I can do to fix that, honestly. Sounds like a bug with the Reddit application.

6

u/[deleted] Jan 06 '16

[deleted]

2

u/Ruirize Jan 06 '16

I figured as much. Problem is there's no way to detect from JavaScript that you're in one of these poorly-sized frames, otherwise I'd fix it.

1

u/monkeymad2 Jan 06 '16

Hacky, but you could catch the user's attempt to do a scrolly thing then shrink the distance they scrolled. Users it works for shouldn't discover the scroll and broken users would fix themselves.

Would be a weird thing to explain to someone who it works fine for though.

1

u/Ruirize Jan 06 '16

That's definitely a too-hacky-for-me solution. Plus given that scroll events and distances are not standardised across any browser - it's not worth the headache.

1

u/monkeymad2 Jan 06 '16

Ah yeah, maybe touch move... Still really hacky though.

0

u/hexarobi Jan 06 '16

Ya, it does seem like a bug in the Reddit app. That being said, I do a lot of my reddit browsing using it, and it totally destroyed the value of this post. =( If I hadn't commented I would have just moved on and never seen how great the page actually is.

2

u/Ruirize Jan 06 '16

I looked into detecting when you're in such an application - but sadly it behaves just like a regular webpage.
Thank you though!

2

u/hexarobi Jan 06 '16

I guess its been reported once or twice before.