Fix Issue 243: Zoom pop-up list state gets corrupted. Patch from Peter D. Reid

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@725 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-09-29 03:18:21 +00:00
parent d701c8e4c0
commit d079c45e52
1 changed files with 9 additions and 3 deletions

View File

@ -479,9 +479,15 @@ function svg_edit_setup() {
on_button = false;
});
button.bind('mousedown mouseup',function() {
button.addClass('down');
list.show();
button.bind('mousedown',function() {
if (!button.hasClass('down')) {
button.addClass('down');
list.show();
on_button = true;
} else {
button.removeClass('down');
list.hide();
}
}).hover(function() {
on_button = true;
}).mouseout(function() {