-
-
Notifications
You must be signed in to change notification settings - Fork 10
Open in new tab feature #37
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
Open in new tab feature #37
Conversation
…lick to open image in new tab. (created setting for middle mouse button)
src/main.ts
Outdated
document, | ||
"mouseup", | ||
"img", | ||
this.onClickImage_click.bind(this) |
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.
a better name would be "onClickImage_mouseup". It's named _click though because I forgot to rename when I replaced the event type from "click" to "mouseup", because "click" didn't work for middle mouse
Hey! Some further questions, that weren't obvious to me from the code:
|
Hey @waterproofsodium, please let me know when you'll get back to this, I'm waiting for your response. Thanks for your contribution either way! |
Apologies. I didn't see a notification on my Github account. |
Thanks!
|
Great!
|
The check made more sense before your changes. The check exists for this line(note the |
I think I did all the fixes I wanted. Would you please check one last time, if the code and especially the types seem correct to you? And also if you build it now it works as before on your machine? |
Types look good. Took me a while to figure out how to get this branch with the latest commit. The following seems to do the trick: Good to go! |
Could you perhaps let me know whether the explanations in 2. were understandable and helpful for you? I am wondering whether explaining it in such detail generally helps or hurts more. |
The explanation was clear, and it helped me understand and refactor the code, thanks! |
features to open image(full screen) in a new tab: