Page 1 of 1

dojo onclick trubbels

Posted: 25 May 2024, 19:08
by AxeCrazy
For my latest game confusing lands i use a block square matrix for placing cards Iwould like to use scrollmap also, but that does not seem to work in combination wiht begin_block routines ?)
I added a dojo onclick listener to each square for placing a card on it.
The active card also has arrow to move the card to adjesent squares, also add with a dojo onclickon each arrow after placing the card in the square.
(See attachment for clarification)

But when i click and arrow the first click always is captured by the underlaying sqaure and only the second click is registered in the callback function of the arrow.

Does anybody have a good explaination why this is the case?
Or a solution would even be better i guess :D

Any help is appriciated.

Re: dojo onclick trubbels

Posted: 25 May 2024, 19:11
by AxeCrazy
Image
Attachment does not seem to work, so see above

Re: dojo onclick trubbels

Posted: 31 May 2024, 15:06
by AxeCrazy
fixed this, so ignore :)