Make active pseudo selector apply when clicking in the track to set band

This commit is contained in:
Jordan Eldredge 2018-07-02 07:21:21 -07:00
parent 3b6dd69576
commit 021f792246

View file

@ -150,7 +150,9 @@ export const imageSelectors = {
EQ_TITLE_BAR_SELECTED: [".selected .equalizer-top"],
EQ_SLIDER_BACKGROUND: [".band"],
EQ_SLIDER_THUMB: [".band .rc-slider-handle"],
EQ_SLIDER_THUMB_SELECTED: [".band .rc-slider-handle:active"],
// But the "active" pseudo selector on the parent, since clicking
// anywhere on the track moves the slider.
EQ_SLIDER_THUMB_SELECTED: [".band .rc-slider:active .rc-slider-handle"],
EQ_ON_BUTTON: ["#on"],
EQ_ON_BUTTON_DEPRESSED: ["#on:active"],
EQ_ON_BUTTON_SELECTED: ["#on.selected"],
@ -329,7 +331,9 @@ LETTERS.forEach(character => {
export const cursorSelectors = {
CLOSE: ["#title-bar #close"],
EQSLID: ["#equalizer-window .band"],
// This is not quite right. There are some areas that show this cursor
// but are not clickable.
EQSLID: ["#equalizer-window .band rc-slider"],
EQNORMAL: ["#equalizer-window"],
EQCLOSE: ["#equalizer-window #equalizer-close"],
EQTITLE: [