Hacker News new | ask | show | jobs
by uggedal 6244 days ago
Should have used mouseClicked() instead of mousePressed() (latter takes you to the href location before the mouse is released). Should also have used the mouseButton variable to determine if it's a left mouse click. As it stands now a right click also takes you to the target page.
2 comments

Changed the example (and updated processing.js) to include mouseClicked().
True, good point.