function open() { focus = true; clip = false }
function close() { clip = true }
- function toggle() { clip ? open() : close() }
+
function shiftZ(obj, delta) {
if (typeof obj.z != 'undefined') obj.z += delta
if (obj.parent) shiftZ(obj.parent, delta) // Set z recursively to parent
// Close reel when the focus is lost
onFocusChanged: if (!focus) close()
// Bring to front if not clipped
- onClipChanged: { clip ? shiftZ(reel, -500) : shiftZ(reel, 500) }
+
onIndexChanged: path.currentIndex = reel.index