merging visible tree fix

Merging https://github.com/thebird/Swipe/pull/277