mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +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
|
||||
}],
|
||||
// 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/',
|
||||
core.doc`
|
||||
|
||||
|
||||
@ -2388,6 +2388,8 @@ var ControlActions = actions.Actions({
|
||||
}
|
||||
})],
|
||||
|
||||
// Ribbon/viewer wheel...
|
||||
//
|
||||
// XXX need:
|
||||
// - prevent ribbon from scrolling off screen...
|
||||
// - handle acceleration -- stop and update just before scrolling off the edge...
|
||||
@ -2396,6 +2398,8 @@ var ControlActions = actions.Actions({
|
||||
// ...this will prevent losing control of the ribbon when it goes out
|
||||
// from under the cursor...
|
||||
// ...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',
|
||||
toggler.Toggler(null,
|
||||
function(){
|
||||
@ -2497,6 +2501,7 @@ var ControlActions = actions.Actions({
|
||||
|
||||
togglePinchHandling: ['Interface/Pinch zoom handling',
|
||||
function(){
|
||||
// XXX
|
||||
}],
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user