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-75d572ba1dddmaster
parent
d701c8e4c0
commit
d079c45e52
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue