File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -363,7 +363,8 @@ javaxt.dhtml.Button = function(parent, config) {
363
363
364
364
365
365
//Create onclick function
366
- var onclick = function ( ) {
366
+ var onclick = function ( e ) {
367
+ e . stopPropagation ( ) ;
367
368
if ( config . sound != null ) config . sound . play ( ) ;
368
369
369
370
@@ -426,7 +427,7 @@ javaxt.dhtml.Button = function(parent, config) {
426
427
427
428
if ( ( duration <= 500 && distance <= 10 ) || //Quick tap
428
429
( duration > 500 && distance <= 10 ) ) { //Long press
429
- onclick ( ) ;
430
+ onclick ( e ) ;
430
431
}
431
432
else {
432
433
setStyle ( div , "button" ) ;
@@ -452,8 +453,8 @@ javaxt.dhtml.Button = function(parent, config) {
452
453
453
454
//return false;
454
455
} ;
455
- div . onclick = function ( ) {
456
- onclick ( ) ;
456
+ div . onclick = function ( e ) {
457
+ onclick ( e ) ;
457
458
} ;
458
459
div . onmouseover = function ( ) {
459
460
You can’t perform that action at this time.
0 commit comments