code: function relayDrag(_, pos) {
                  const relX = pos[0]/container.clientWidth,
                        relY = pos[1]/container.clientHeight;
                  callbackRelative(relX, relY);
              }
docs: Convert the px coordinates to relative coordinates (0-1) before invoking the callback: