simon-git: puzzles (master): Simon Tatham

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Fri Aug 14 19:52:12 BST 2015


TL;DR:
  dd9e24a emcc frontend: stop indiscriminately squashing mouseups.

Repository:     git://git.tartarus.org/simon/puzzles.git
On the web:     http://tartarus.org/~simon-git/gitweb/?p=puzzles.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2015-08-14 19:52:12

commit dd9e24a42fda3a9810ae1e4ce394be1259821fd2
web diff http://tartarus.org/~simon-git/gitweb/?p=puzzles.git;a=commitdiff;h=dd9e24a42fda3a9810ae1e4ce394be1259821fd2;hp=c296301a06ce49b87c954c9d15452521dfeddf1a
Author: Simon Tatham <anakin at pobox.com>
Date:   Fri Aug 14 19:42:42 2015 +0100

    emcc frontend: stop indiscriminately squashing mouseups.
    
    The mouseup listener was calling event.preventDefault(), as part of
    the mechanism for making mouse clicks and drags on the puzzle's resize
    handle have resizing effects _instead_ of the normal browser
    behaviour. However, calling event.preventDefault() on _every_ mouseup,
    rather than just the ones associated with the resize handle, was
    overkill, and I've recently noticed that it's breaking attempts to
    select from the game type dropdown by clicking the mouse. So now I'm
    only calling preventDefault() on the mouseups that I have reason to
    think are actually relevant to what I'm trying to do.
    
    (I don't know why I've only just noticed this. I suppose a change of
    behaviour between Firefox versions is the most likely cause.)

 emccpre.js |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)



More information about the tartarus-commits mailing list