mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-28 03:39:13 +02:00
Make it more obvious that the touch handling is its own section.
This commit is contained in:
@@ -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()
|
||||||
|
})()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user