Back to front pageView on Hacker News (opens in a new tab)Show HN: WebGL simulation of rainy autumn day/evening (opens in a new tab)pluvoir.netlify.app393 pointsby maxraz (on Hacker News)6 years agoComments (60) 27 threadsShow all commentsShowing thread 5 of 27[-]controlledchaos6 years ago1 reply#Toggling the options seems to add records to the browser history, which means it takes a bunch of taps on the back button in safari to get out of the app. Otherwise, really cool![-]maxraz6 years ago2 replies#I wish I had a MAC to test, anyway thank you.eminence326 years ago#Happens on Chrome on Windows too, so it's not likely a Safari-specific issueIvoDankolov6 years ago#It's due to the day/night buttons being anchor tags as opposed to any Safari-specific issue.If you wanted to keep the the ability to link to specific states, but avoid the history issue, you'll need to use the History API — https://developer.mozilla.org/en-US/docs/Web/API/History/rep...
Show HN: WebGL simulation of rainy autumn day/evening (opens in a new tab)pluvoir.netlify.app393 pointsby maxraz (on Hacker News)6 years ago
controlledchaos6 years ago1 reply#Toggling the options seems to add records to the browser history, which means it takes a bunch of taps on the back button in safari to get out of the app. Otherwise, really cool!
IvoDankolov6 years ago#It's due to the day/night buttons being anchor tags as opposed to any Safari-specific issue.If you wanted to keep the the ability to link to specific states, but avoid the history issue, you'll need to use the History API — https://developer.mozilla.org/en-US/docs/Web/API/History/rep...
Comments (60) 27 threads
Show all comments
Showing thread 5 of 27
If you wanted to keep the the ability to link to specific states, but avoid the history issue, you'll need to use the History API — https://developer.mozilla.org/en-US/docs/Web/API/History/rep...