Mercurial Hosting > dad
comparison src/dad.js @ 20:0b3376e13e22 default tip
add nested example
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 18 Feb 2025 17:23:17 -0700 |
parents | 36c7b187827b |
children |
comparison
equal
deleted
inserted
replaced
19:dac260018e2e | 20:0b3376e13e22 |
---|---|
57 for( let i=0; i<dropzones.length; i++ ) { | 57 for( let i=0; i<dropzones.length; i++ ) { |
58 let dz = dropzones[i]; | 58 let dz = dropzones[i]; |
59 if( dz === dragging ) | 59 if( dz === dragging ) |
60 continue; | 60 continue; |
61 if( isIn(x,y,dz.getBoundingClientRect()) ) { | 61 if( isIn(x,y,dz.getBoundingClientRect()) ) { |
62 let old = dropzone; | |
62 dropzone = dz; | 63 dropzone = dz; |
63 dad.onEnter(myEvent(event)); | 64 let f = dad.onEnter(myEvent(event)); |
64 break; | 65 if( f === false ) |
66 dropzone = old; | |
67 else | |
68 break; | |
65 } | 69 } |
66 } | 70 } |
67 } | 71 } |
68 } | 72 } |
69 } | 73 } |