Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Workaround for history animation in Safari for OS X Lion?

In Safari for OS X Lion, when you use the swipe gesture to navigate forward or backward in history, the window animates as though you were moving through physical pages. The problem with this behavior is that many apps already listen for changes in the history state, and respond appropriately -- either when the hash is changed, or when HTML5 pushState is used.

A perfect example is GitHub, when navigating in and out of folders -- https://github.com/johndyer/mediaelement, for example. If you click on a folder, then swipe to the previous page, the end state "snapshot" is shown, and then animated to again from the beginning state, which not only is confusing, but nullifies the informational value of the animation.

Today is my first day using Lion, but I'm curious if any other web devs have encountered this issue, and whether you've found a workaround?

like image 979
JKS Avatar asked Sep 10 '25 01:09

JKS


1 Answers

Sadly it seems there's no documentation about this in the Safari Developer Library.

But there is an (ugly) workaround to disable them on your client machine at least. In the Trackpad settings, if you set Swipe between pages to Swipe with two or three fingers you can use two fingers to do fancy animations, and three fingers if you don't like them. But it feels really weird, especially because the three finger swipe is in the wrong direction.

like image 113
toabi Avatar answered Sep 13 '25 11:09

toabi