BooksHTML / mathbook-assets

Styles and scripts for the Mathbook platform.
0 stars 3 forks source link

toggling multiple asides #103

Open davidfarmer opened 6 years ago

davidfarmer commented 6 years ago

On a page with multiple asides, such as

https://sites.ualberta.ca/~jsylvest/books/DLA/section-inverses-concepts.html

if you: hover and then click on the first aside, then click to close that side (noting that it still has focus) then hover and click on the second aside, you will find that the second aside gets focus, but does not get class "front" (see Mathbook.js, line 1204 $(this).toggleClass("front"); ) and so does not become big and in the middle.

Guess at the problem: when you hover on the second one, the focus is on the first, so clicking changes focus but does not count as a click.

davidfarmer commented 6 years ago

Also see https://groups.google.com/forum/?hl=en#!topic/pretext-support/4pGXIwaQM_8 for related issues