experementing...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-04-25 16:48:58 +03:00
parent 3fa4d22446
commit 7cb1bd7c4b
2 changed files with 27 additions and 1 deletions

View File

@ -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`

View File

@ -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,6 +2398,8 @@ 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(){
@ -2497,6 +2501,7 @@ var ControlActions = actions.Actions({
togglePinchHandling: ['Interface/Pinch zoom handling', togglePinchHandling: ['Interface/Pinch zoom handling',
function(){ function(){
// XXX
}], }],