Make it more obvious that the touch handling is its own section.

This commit is contained in:
Simo Kinnunen
2014-12-10 14:47:11 +09:00
parent e4114d87af
commit 0014096a2f

View File

@@ -385,7 +385,16 @@ module.exports = function DeviceScreenDirective($document, ScalingService,
scope.$on('$destroy', off) scope.$on('$destroy', off)
// @todo Move everything below this line elsewhere. /**
* TOUCH HANDLING
*
* This should be moved elsewhere, but due to shared dependencies and
* elements it's currently here. So basically due to laziness.
*
* For now, try to keep the whole section as a separate unit as much
* as possible.
*/
;(function() {
var slots = [] var slots = []
, slotted = Object.create(null) , slotted = Object.create(null)
, fingers = [] , fingers = []
@@ -800,6 +809,7 @@ module.exports = function DeviceScreenDirective($document, ScalingService,
element.on('mouseup', mouseUpBugWorkaroundListener) element.on('mouseup', mouseUpBugWorkaroundListener)
createSlots() createSlots()
})()
} }
} }
} }