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
T263598 keyboard shortcuts on gallery #114
Conversation
Seems to work well |
case 'ArrowRight': | ||
case 'Right': | ||
if ( dir === 'ltr' ) { | ||
renderNext() | ||
} else { | ||
renderPrevious() | ||
} | ||
break | ||
case 'ArrowLeft': | ||
case 'Left': | ||
if ( dir === 'ltr' ) { | ||
renderPrevious() | ||
} else { | ||
renderNext() | ||
} | ||
break |
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.
This is so native, any idea to improve?
@@ -0,0 +1,16 @@ | |||
let eventListenerStack = [] |
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.
Should all gallery event listeners be included in this new array? The ones in applyGestureEvent
for example? Mainly asking because that would overlap the image zoom feature I'm working on.
Phabricator Ticket : https://phabricator.wikimedia.org/T263598