Closed michlampert closed 1 year ago
Hi @michlampert,
Thanks for the PR! This is a great addition to the extension!
And at a glance looks well implemented.
Just by looking at the code and images I have a couple of thoughts already:
this.lastClicks
and this.scheduledActionsIds
benefit from being json objects? At a glance it looks like they can be declared as Array
or Map
objects.??
operator be rewritten with a more generic operator?Thanks for your feedback @Moon-0xff!
I hope that changes will meet your expectations :smile:
Photo of menu for reference:
I hope that changes will meet your expectations 😄
Indeed.
Normally I would prefer to avoid the ternary operator but it looks like a good fit here.
The changes to the menu are good.
For consistency I would underline "Single click" and "Double click" as "Mouse bindings" is underlined.
I would also put a blank space between the button bindings and the scroll binding (there's a commented line that produces a blank line somewhere).
edit: Didn't found it.
Great! I don't have more changes to request. Good job!
I will soon inspect the code more closely and perhaps push to this branch, if isn't a problem on your end (is it?).
After that I will test it a bit and merge it.
Sure! Thank you :smile:
I've added some inconsequential (or should be inconsequential) style changes.
I will add a few more tomorrow.
Let me know if you have any thoughts about, or if there's problems with my commits.
And don't be afraid of pushing!
I refactored the code to make it easier to understand (I hope).
The logic should be the same.
Alright, I think I'm done now. Please review the changes and if everything looks good to you I will merge it.
One thing to note, I didn't review on detail the prefs.js
changes, it looks like it behaves like it should and we are thinking of redoing the whole thing (#67).
Looks good to me :wink: I'm looking forward to see it in the next release!
Great! I will merge it then.
Thanks again for the PR @michlampert!
Hi!
Sometimes I felt like I was missing buttons in my mouse (or touchpad) to trigger some options, so I decided to implement double click feature, which work similar to this in portable speakers or headphones.
After changes menu will contain additional options:
Before:
After: