Skip to content

[Issue] mainbar cant be dragged #78

Description

@borrowjack

Issue type *

Improvement

Server/AzerothCore version

latest

Description *

Mainbar cant be dragged.

UI/MultiBotMainUI.lua line 1112 — added click re-registration:

mainButton:RegisterForClicks("LeftButtonUp", "RightButtonUp")
Why this fixes it: the main button was created with RegisterForClicks("LeftButtonDown", "RightButtonDown"), which fires OnClick immediately on mouse-down — before WoW's drag detection threshold is reached. That consumes the mouse event and OnDragStart never fires. By re-registering for clicks on mouse-up, the drag is detected first; a click (no movement) still fires normally on release.

Steps to reproduce

see description

Expected behavior *

draggable mainwindow

Actual behavior / Errors

No response

Crashlog / Gist link (optional)

No response

Screenshots

No response

Pre-submission checklist *

  • I searched for existing issues that match mine.
  • I tested with the minimum set of addons/changes.
  • I provided reproduction steps and/or relevant logs.

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions