Skip to content

Your home as a live 3D model in the Mac menu bar and on iPhone — lights and ACs via Smart Life, Home Assistant, Philips Hue and Apple Home.

Phone editor: a tap on what is already selected brings up its details

0xProbability2c466a9ca767
diff --git a/web/src/editor/editor.js b/web/src/editor/editor.js
index d0858f0..722d83a 100644
--- a/web/src/editor/editor.js
+++ b/web/src/editor/editor.js
@@ -1098,7 +1098,14 @@ export async function bootEditor(root) {
const lift = (ev) => {
if (!fingers.delete(ev.pointerId)) return;
if (!gesture) return;
- if (gesture.type === 'drag') { endDrag(); gesture = null; return; }
+ if (gesture.type === 'drag') {
+ // A tap on what is already selected (just added, say) brings up its details.
+ const tapped = ev.type === 'pointerup' && drag && !drag.moved && drag.kind !== 'resize';
+ endDrag();
+ gesture = null;
+ if (tapped && ui.sheet === 'closed') { haptic('light'); setSheet('peek'); }
+ return;
+ }
if (gesture.type === 'pinch') {
// One finger stays down: it carries on panning from here.
const [rest] = [...fingers.values()];