If the grid manager receives this event but actually is panning, we are not in edit mode. It is a edge case but possible so please add this condition

```js
if (Homescreen.isInEditMode()) {
  document.body.addEventListener('click', onClickHandler);
} 
```