That’s providing that mouse button went down first for this widget and we are not clicking a native widget button
. The above would detect releasing the middle mouse button which is usually a clickable mouse wheel.
The ask here is slightly confusing as you have Detect Drag if Pressed inside the On Mouse Button Up event. Sounds like you want to start dragging when you release the middle mouse click - could be fine, just ever so slightly uncommon.