Bug 1050381 - Support accessibility edge gestures.

please do the early break and the variable extraction like in the edge_swipe_detector.js