about summary refs log tree commit diff
path: root/website/sandbox/learnpianochords/src/Practice.elm
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-04-18T17·51+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-04-18T17·51+0100
commit82ebc0ad198bc5c0bdc3508d0dad54ea33617db1 (patch)
tree9183cbc6091defb637d1908182937c86e19d9e8a /website/sandbox/learnpianochords/src/Practice.elm
parent441fe3e32eb9c041515178f74564ede9fd24db72 (diff)
Debug unresponsive button press for selectKey
Observed problem: Tapping "C major, A minor" key, which LPC sets by default,
does not unset it.

Bug: handleClick passed the relativeMinor Key but the default value in
State.Model is the C Major key. We would toggled b/w [Cmajor] ->
[Cmajor,Aminor], and because toggled checked if either Cmajor or Aminor was
present, it was always true.

Solution: Check relativeMajor to set toggled.
Diffstat (limited to 'website/sandbox/learnpianochords/src/Practice.elm')
0 files changed, 0 insertions, 0 deletions