Comments (4)
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.
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.
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.
Sure! I can create a PR once I confirmed it works from my side. :)
from widget-axes.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from widget-axes.