mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
experementing...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3fa4d22446
commit
7cb1bd7c4b
@ -226,6 +226,27 @@ var LocationActions = actions.Actions({
|
|||||||
})
|
})
|
||||||
return res
|
return res
|
||||||
}],
|
}],
|
||||||
|
// XXX how do we call the dispatched actions and all the matching
|
||||||
|
// pattern actions???
|
||||||
|
// One way to go would be:
|
||||||
|
// .dispatch('location:*:save', ..)
|
||||||
|
// -> 'location:?' - get the default for '*'
|
||||||
|
// -> 'location:*:save' (pre)
|
||||||
|
// -> 'location:file:save' - forms the return value
|
||||||
|
// -> 'location:*:save' (post)
|
||||||
|
//
|
||||||
|
// ...this should the same as calling (???):
|
||||||
|
// .loadLocation(..)
|
||||||
|
// XXX sanity check: how is this different for what Action(..) does???
|
||||||
|
// ...the only thing this adds is a way not to call some of the
|
||||||
|
// overloading actions via a simple pattern matching mechanism...
|
||||||
|
// Example:
|
||||||
|
// .dispatch('location:file:save', ..)
|
||||||
|
// -> calls only the "save" actions that match the
|
||||||
|
// location:file protocol ignoring all other
|
||||||
|
// implementations...
|
||||||
|
// ...for pure actions this is also possible by manually checking
|
||||||
|
// some condition and doing nothing if not matched...
|
||||||
dispatch: ['- File/',
|
dispatch: ['- File/',
|
||||||
core.doc`
|
core.doc`
|
||||||
|
|
||||||
|
|||||||
@ -2388,6 +2388,8 @@ var ControlActions = actions.Actions({
|
|||||||
}
|
}
|
||||||
})],
|
})],
|
||||||
|
|
||||||
|
// Ribbon/viewer wheel...
|
||||||
|
//
|
||||||
// XXX need:
|
// XXX need:
|
||||||
// - prevent ribbon from scrolling off screen...
|
// - prevent ribbon from scrolling off screen...
|
||||||
// - handle acceleration -- stop and update just before scrolling off the edge...
|
// - handle acceleration -- stop and update just before scrolling off the edge...
|
||||||
@ -2396,9 +2398,11 @@ var ControlActions = actions.Actions({
|
|||||||
// ...this will prevent losing control of the ribbon when it goes out
|
// ...this will prevent losing control of the ribbon when it goes out
|
||||||
// from under the cursor...
|
// from under the cursor...
|
||||||
// ...detect via cursor within the vertical band of the ribbon...
|
// ...detect via cursor within the vertical band of the ribbon...
|
||||||
|
// XXX BUG?: acceleration seems to be increasing with time...
|
||||||
|
// XXX add a "ribbonWheeling" ( ;) ) event a-la ribbonPanning...
|
||||||
toggleMouseWheelHandling: ['Interface/Mouse wheel handling',
|
toggleMouseWheelHandling: ['Interface/Mouse wheel handling',
|
||||||
toggler.Toggler(null,
|
toggler.Toggler(null,
|
||||||
function(){
|
function(){
|
||||||
return this.ribbons
|
return this.ribbons
|
||||||
&& this.ribbons.viewer
|
&& this.ribbons.viewer
|
||||||
&& this.ribbons.viewer.hasClass('mouse-wheel-scroll') ?
|
&& this.ribbons.viewer.hasClass('mouse-wheel-scroll') ?
|
||||||
@ -2497,6 +2501,7 @@ var ControlActions = actions.Actions({
|
|||||||
|
|
||||||
togglePinchHandling: ['Interface/Pinch zoom handling',
|
togglePinchHandling: ['Interface/Pinch zoom handling',
|
||||||
function(){
|
function(){
|
||||||
|
// XXX
|
||||||
}],
|
}],
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user