Use dimensions of the element the swipe event is delegated to

"event.target" matches the DOM element directly under the cursor.
"event.delegateTarget" matches the DOM element ".on" was called on.