Schroedingers-Hat / jsphys

Libraries for physics simulation on javascript canvas
GNU Affero General Public License v3.0
11 stars 1 forks source link

Decide what to do on click #132

Open capnrefsmmat opened 12 years ago

capnrefsmmat commented 12 years ago

It appears I had broken the click-to-change-frames behavior a while back when refactoring the UI and didn't notice. Now I've changed the behavior to panning: click and drag and you can pan around the scene to see bits that have flown off-screen. The click-to-change-frame functionality is disabled. Hypothetically I could include both: if you click but don't drag, you get your frame changed, but otherwise you pan.

This seems like it has potential for confusion. People would be panning and accidentally click and end up in the wrong frame.

Do we mind losing the frame changing functionality altogether, or should we find an alternative method?

Schroedingers-Hat commented 12 years ago

I don't mind losing the frame changing functionality and that seems easiest. Click to drag and double click to change frame might work (it's a common idiom) as one alternative. Ideally there'd be a few icons so you can choose. An alternate would be to select an object/event/etc and display a reticle (we already have bounding boxes to find out how big to draw it) like an RTS. Further clicks/double clicks could centre/change frame etc. (or combine with menu idea).