forked from 0x2620/pandora
add events to item label in navigation view: singleclick pans to item, doubleclick zooms to item
This commit is contained in:
parent
d808882aae
commit
f75d2512c3
1 changed files with 9 additions and 1 deletions
|
@ -29,7 +29,15 @@ pandora.ui.navigationView = function(type, videoRatio) {
|
|||
title: '',
|
||||
width: 96 + Ox.UI.SCROLLBAR_SIZE
|
||||
})
|
||||
.css({float: 'left', margin: '4px 0 4px 0'}),
|
||||
.css({float: 'left', margin: '4px 0 4px 0'})
|
||||
.bindEvent({
|
||||
singleclick: function() {
|
||||
$element[type == 'map' ? 'panToPlace' : 'panToEvent']();
|
||||
},
|
||||
doubleclick: function() {
|
||||
$element[type == 'map' ? 'zoomToPlace' : 'zoomToEvent']();
|
||||
}
|
||||
}),
|
||||
|
||||
$itemButton = Ox.Button({
|
||||
title: 'close',
|
||||
|
|
Loading…
Reference in a new issue