[GH-ISSUE #158] Capture next / previous mouse buttons with JS #110

Closed
opened 2026-02-26 02:32:10 +03:00 by kerem · 7 comments
Owner

Originally created by @Beanow on GitHub (Dec 29, 2015).
Original GitHub issue: https://github.com/koel/koel/issues/158

Currently if I use the next / prev mouse buttons it will reload the page. Ideally I'd like the javascript level to catch this and go to the previous state. Such as from the current queue to album overview where I was last at.

Originally created by @Beanow on GitHub (Dec 29, 2015). Original GitHub issue: https://github.com/koel/koel/issues/158 Currently if I use the next / prev mouse buttons it will reload the page. Ideally I'd like the javascript level to catch this and go to the previous state. Such as from the current queue to album overview where I was last at.
kerem 2026-02-26 02:32:10 +03:00
Author
Owner

@juliusvdijk commented on GitHub (Dec 29, 2015):

If any developer wants to do this, this can be done using window.history.pushState

I can try to make a PR.

<!-- gh-comment-id:167782534 --> @juliusvdijk commented on GitHub (Dec 29, 2015): If any developer wants to do this, this can be done using [window.history.pushState](https://developer.mozilla.org/en-US/docs/Web/API/History_API) I can _try_ to make a PR.
Author
Owner

@phanan commented on GitHub (Dec 30, 2015):

Nope, that would be vue-router. I don't think this is necessary though - when was the last time you navigated back/forth in iTunes, if at all?

<!-- gh-comment-id:167918387 --> @phanan commented on GitHub (Dec 30, 2015): Nope, that would be vue-router. I don't think this is necessary though - when was the last time you navigated back/forth in iTunes, if at all?
Author
Owner

@Shahor commented on GitHub (Dec 30, 2015):

I use google music and this can come in handy actually.

<!-- gh-comment-id:167967894 --> @Shahor commented on GitHub (Dec 30, 2015): I use google music and this can come in handy actually.
Author
Owner

@Beanow commented on GitHub (Dec 30, 2015):

I requested it because this is what I actually did and found myself sent to a previous url, which means the queue was cleared and music stopped. More exactly:

  1. Navigated to artists, clicked play on "Hybrid Minds".
  2. Found myself in the current queue.
  3. Pressed previous because I wanted to to add "Ivy Lab" as well.
  4. Lost current queue and went to previous page in browser history.
<!-- gh-comment-id:167967910 --> @Beanow commented on GitHub (Dec 30, 2015): I requested it because this is what I actually did and found myself sent to a previous url, which means the queue was cleared and music stopped. More exactly: 1. Navigated to artists, clicked play on "Hybrid Minds". 2. Found myself in the current queue. 3. Pressed previous because I wanted to to add "Ivy Lab" as well. 4. Lost current queue and went to previous page in browser history.
Author
Owner

@juliusvdijk commented on GitHub (Dec 30, 2015):

Spotify also has support for the next and previous button, both in the web player and the desktop client.

<!-- gh-comment-id:167969397 --> @juliusvdijk commented on GitHub (Dec 30, 2015): Spotify also has support for the next and previous button, both in the web player and the desktop client.
Author
Owner

@phanan commented on GitHub (Dec 31, 2015):

I'm re-opening this, but it will still need to be a proper router instead. Not high on my todo-list neither tbh.

<!-- gh-comment-id:168175438 --> @phanan commented on GitHub (Dec 31, 2015): I'm re-opening this, but it will still need to be a proper `router` instead. Not high on my todo-list neither tbh.
Author
Owner

@phanan commented on GitHub (Jul 11, 2016):

Sorry guys, for keeping you waiting (if you do at all!) But the feature is now available on v3.1.0. Cheers!

<!-- gh-comment-id:231627811 --> @phanan commented on GitHub (Jul 11, 2016): Sorry guys, for keeping you waiting (if you do at all!) But the feature is now available on [v3.1.0](https://github.com/phanan/koel/releases/tag/v3.1.0). Cheers!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#110
No description provided.