onMouseMove: function()

in app/launch/src/components/Application/DebugInfo.js [30:43]


    onMouseMove: function (e) {
      e.stopPropagation()
      e.preventDefault()
      setState((state) => {
        if (!state.dragging) return state
        return {
          ...state,
          pos: {
            x: e.pageX - state.rel.x,
            y: e.pageY - state.rel.y,
          },
        }
      })
    },