-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Js fixes #286
Closed
Closed
Js fixes #286
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
d489b06
mousemove event listener does not return button press information; re…
cr1901 559a0b5
Update inaccurate comment explain why rotation matrix is transposed; …
cr1901 70b41e2
Fix errant break statment in mousemove_pan.
cr1901 2f61527
Preliminarily fix rotate and pan on devices where devicePixelRatio != 1.
cr1901 3a97c8d
ESLint fixes.
cr1901 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be replaced with e.g.
function panstart(_event) {
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You would think this would be simple, and
eslint
has anargsIgnorePattern
option, but it doesn't work for functions only taking one argument.The correct way to handle this case is create a custom rule. This implies creating a plugin, which is a node package, and also supplying my
.eslintrc
(which I prob should supply anyway in the repo, since the linter requires it). I don't actually have node installed atm tho- eslint is provided through atom. So, it's a bit of work :(.Even as-is, I can reduce the scope of the lint disables by doing the following for each event handler: