AceCentre / pasco

Phrase Auditory Scanning COmmunicator - AAC App for iOS and the Web
https://app.pasco.chat
GNU General Public License v3.0
14 stars 6 forks source link

New interface/access method - scroll wheel to navigate. Switch/Key/LClick to select #121

Closed willwade closed 5 years ago

willwade commented 5 years ago

We have some users who can control a scroll wheel on a mouse. A totally different access solution is to use a scroll wheel (so scroll up/down - with a switch/keypress/left click to select).

This obviously would only need to work on the Web version currently.

I guess something like..

    var _top = $(window).scrollTop();
    var _direction;
    $(window).scroll(function(){
        var _cur_top = $(window).scrollTop();
        if(_top < _cur_top)
        {
            _direction = 'down';
            // Activate/Hold down key
        }
        else
        {
            _direction = 'up';
            // Activate/Hold up key
        }
        _top = _cur_top;
        console.log(_direction);
    });
});​

Would this also work on iOS though if someone swiped up/down?

hosseinzoda commented 5 years ago

Mouse wheel event is available. https://developer.mozilla.org/en-US/docs/Web/Events/wheel And swipe is captured with touch events. Apparently wheel event can capture wheels that support two axis movements.

willwade commented 5 years ago

Have some users where swipe is the main access method. Not sure if this fits here: Swipe Up/Down to navigate up/Down the tree and swipe left/right to access the tree elements. That would be neat