# Pouvoir déplacer une épingle dans le widget Vue de la maison

**URL:** <https://community.gladysassistant.com/t/pouvoir-deplacer-une-epingle-dans-le-widget-vue-de-la-maison/10735>\
**Category:** Demandes livrées\
**Tags:** in-progress\
**Created:** [Août 28, 2026, 12:43 UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-epingle-dans-le-widget-vue-de-la-maison/10735 "2026-08-28T12:43:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [Août 28, 2026, 12:43 UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-epingle-dans-le-widget-vue-de-la-maison/10735/1 "2026-08-28T12:43:06Z")

</div>

Le nouveau widget `vue de la maison` est très sympa ! Je m’éclate avec cette v5 😉

Je suggère une évolution pour pouvoir affiner ce widget quand il a déjà été créé : pouvoir déplacer une épingle existante.

Par exemple, je voudrais pourvoir mieux placer les épingles du sous-sol et du grenier :

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/3/4/34ad8297ac435b77ca852fdd37db46de49b22696.jpeg)

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [Août 28, 2026, 1:06 UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-epingle-dans-le-widget-vue-de-la-maison/10735/2 "2026-08-28T13:06:20Z")

</div>

Totalement d’accord, je suis super content de cette vue, j’y ai intégré mon appartement en 3D avec [Logiciel de plan 3D, 2D gratuit et d'aménagement intérieur | HomeByMe](https://home.by.me/fr/).

Mais certaines épingles mériteraient d’être déplacées pour une meilleur visibilité, et j’ai pas mal la flemme de supprimer et refaire les 10 épingles 😂

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [Août 28, 2026, 1:10 UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-epingle-dans-le-widget-vue-de-la-maison/10735/3 "2026-08-28T13:10:58Z")

</div>

+1 ce serait très utile !!

---

<div class="post-metadata">

**Author:** ![Steph38230](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@Steph38230](https://community.gladysassistant.com/u/Steph38230)\
**Post date:** [Août 28, 2026, 3:58 UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-epingle-dans-le-widget-vue-de-la-maison/10735/4 "2026-08-28T15:58:29Z")

</div>

Je me suis fait exactement la même réflexion ce matin en jouant avec ce widget 😉

---

<div class="post-metadata">

**Author:** ![cursor-bot](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/cursor-bot/32/22252_2.png) [@cursor-bot](https://community.gladysassistant.com/u/cursor-bot)\
**Post date:** [Août 28, 2026, 6:07 UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-epingle-dans-le-widget-vue-de-la-maison/10735/5 "2026-08-28T18:07:43Z")

</div>

Salut tout le monde !

Ce sujet est désormais **en cours de développement**.

Une PR a été ouverte pour pouvoir déplacer les épingles du widget Vue de la maison en les faisant glisser :

> <https://github.com/GladysAssistant/Gladys/pull/3054>
>
> \### Description
> 
> Refining a house-view widget used to mean removing a pin and pl…acing it again — painful once a floor plan carries ten of them.
> 
> A pin marker in the editor is now a drag handle:
> 
> \- \*\*Drag to move\*\*: pointer events, so one code path for mouse, touch and pen (same reasoning as \`utils/pointerDrag.js\`, but a pin lands on a coordinate instead of a drop target, hence its own small engine in \`components/boxs/house-view/pinDrag.js\`). Nothing re-renders during the gesture — the marker follows the pointer through its own inline style and the box config is only written on drop.
> \- \*\*Safe gestures\*\*: a movement below 4 px stays a click (a plain click on a pin does nothing), Escape or a \`pointercancel\` puts the pin back where it was, and the dropped position is clamped to the image.
> \- \*\*Keyboard\*\*: a focused marker moves with the arrow keys (1 %, 0.1 % with Shift), so pins can be positioned precisely and without a pointer. Markers are focusable, carry a localized \`aria-label\` (\`Pin 1\`) and a \`title\` hint.
> \- \*\*Placing a pin is untouched\*\*: the gesture on a marker never reaches the image's click handler, so clicking the illustration still adds a pin.
> 
> Also updated in the same diff: the three locale files (\`en\`/\`fr\`/\`de\` — the pin help text no longer says "remove it and place it again") and the living spec \`docs/specs/dashboard-flexible-layout-and-widgets.md\` (section E, house-view pins).
> 
> Verified headlessly with Playwright against the real \`EditHouseViewBox\` mounted in a throwaway harness (removed before commit): drag commits the new coordinates and re-renders the marker there, dragging one pin leaves the others untouched, the drag never adds a pin, out-of-image drops clamp to 0–100 %, arrow keys nudge by 1 % / 0.1 %, Escape restores the previous position, touch drag works under mobile emulation without scrolling the page, and clicking the image still adds a pin.
> 
> \## Forum
> 
> Forum: https://community.gladysassistant.com/t/pouvoir-deplacer-une-epingle-dans-le-widget-vue-de-la-maison/10735
> 
> \### Checklist
> 
> \- \[x\] Tests pass: server untouched (frontend-only change); Cypress could not run in this environment (the Cypress binary download fails behind the sandbox proxy), so CI covers it
> \- \[x\] Linter and prettier pass on both front and server (\`npm run eslint\`: 0 errors, \`npm run prettier-check\`: clean, \`npm run compare-translations\`: no errors, \`npm run build\`: OK)
> \- \[x\] No undocumented breaking change
> 
> \---
> \_Generated by \[Claude Code\](https://claude.ai/code/session\_01DRQxsQeke2BhHgRsxn2qxg)\_
> 
> 
> 
> \## Summary by CodeRabbit
> 
> \* \*\*New Features\*\*
> \* House-view pins can now be repositioned by dragging their markers.
> \* Focused pins can be moved with arrow keys, including finer adjustments with Shift.
> \* Added accessible focus states, labels, and movement guidance.
> 
> \* \*\*Bug Fixes\*\*
> \* Pin movement is constrained to valid image boundaries and saves only after a completed drag.
> 
> \* \*\*Documentation\*\*
> \* Updated English, German, and French instructions to describe the new pin-editing controls.

N’hésitez pas à suivre la PR, à tester (optionnel, surtout pour les petites demandes) et à faire vos retours ici si besoin.

---

<div class="post-metadata">

**Author:** ![cursor-bot](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/cursor-bot/32/22252_2.png) [@cursor-bot](https://community.gladysassistant.com/u/cursor-bot)\
**Post date:** [Septembre 4, 2026, 3:50 UTC](https://community.gladysassistant.com/t/pouvoir-deplacer-une-epingle-dans-le-widget-vue-de-la-maison/10735/6 "2026-09-04T15:50:34Z")

</div>


