Drag and drop Tiles

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
nlexa
Posts: 26
Joined: Fri Aug 05, 2011 2:34 am

Drag and drop Tiles

Post by nlexa » Thu Dec 15, 2011 12:11 am

DragNDrop.zip
(1.55 KiB) Downloaded 224 times
I've made this wee program. You can double click on each tile and type some text, hit enter/return to exit typing. You can click and drag the tiles over the other tiles and they will shuffle.
Under normal conditions it works fairly well BUT:

If you grab a tile and start dragging it around really fast like a madman and finally release it strange things start happening.
If you drag and drop a lot of tiles in very rapid succession it also behaves not the way I intended.
Nothing should break the initial setup formation but it does if you go crazy on it.

I really like what I have so far I just need to make it idiot proof. Why/how does it behave like this? It's like it didn't get the message that I've stopped dragging the tile (field) and the fields keep sliding around when I mouse over them.

Any feedback will be appreciated.

Post Reply