tangrams / tangram-play

Text editor web app for Tangram scenes
https://tangram.city/play/
MIT License
94 stars 27 forks source link

Pause button #236

Open louh opened 8 years ago

louh commented 8 years ago

Is it worthwhile to have a "pause" button? so that, if you know what you are doing for a little bit you can temporarily tell Tangram not to refresh with every change.

bcamper commented 8 years ago

It would be useful to at least disable animation, yes :) Right now you can kind of do that by setting scene.animated = false, but then Tangram will turn it back to true (if the scene contains animated styles) every time it rebuilds :/ So we probably need some kind of master "pause" button on that side.

bcamper commented 8 years ago

I just wanted this now and it occurs to me it could be an easy one to pick off when you have a few hours :)

louh commented 8 years ago

@patriciogonzalezvivo Is this a dupe of #14?

louh commented 8 years ago

The update to this is that there are two kinds of pause, which we need to account for:

  1. Pause halts auto-refreshing Tangram with every change of the editor. This is what I had in mind and the earlier PR solves.
  2. Pause halts Tangram's animation loop. Tangram itself may need some additional work to support this.