Coder Social home page Coder Social logo

Comments (4)

chilipeppr avatar chilipeppr commented on September 6, 2024

Give it a try, but the way I solve it is by making sure no widgets are off
the page by collapsing unneeded ones.

On Thu, Jun 16, 2016 at 12:45 AM, David Liu [email protected]
wrote:

On http://chilipeppr.com/jarret and /grbl, I noticed that if the window
is larger than the page dimensions, jogging with the keyboard scrolls the
page, which is kind of jarring. Can we lock the page scroll and capture the
arrow keypresses when the jog command is active?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#6, or mute the thread
https://github.com/notifications/unsubscribe/AHidbVrYwTMOyzlYvOLOw7IXiraTaLzAks5qMP8egaJpZM4I3HEH
.

from widget-axes.

cheton avatar cheton commented on September 6, 2024

How about preventing default browser action when the Axes widget is getting focused? For example:

window.addEventListener('keydown', function(e) { // arrow keys
    if([37, 38, 39, 40].indexOf(e.keyCode) > -1) {
        e.preventDefault();
    }
}, false);

from widget-axes.

chilipeppr avatar chilipeppr commented on September 6, 2024

That's a great idea. Would it be possible for you to fork the github, make
change, and then do pull request?

On Wed, Jun 22, 2016 at 4:32 AM, Cheton Wu [email protected] wrote:

How about preventing default browser action when the Axes widget is
getting focused? For example:

window.addEventListener('keydown', function(e) { // arrow keys
if([37, 38, 39, 40].indexOf(e.keyCode) > -1) {
e.preventDefault();
}
}, false);


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#6 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AHidbfW9eH3M-iyaAnRcpdASiNg7ocqJks5qOR1pgaJpZM4I3HEH
.

from widget-axes.

cheton avatar cheton commented on September 6, 2024

Sure! I can create a PR once I confirmed it works from my side. :)

from widget-axes.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.