This is required to be compatible to the latest version of aero[1]. While using the addon,
the `WorldMapButton` does not return a proper `:GetCenter()` for a short period of time. This
leads to `mx` and `my` being nil and breaking the calculation. Now the coordinates will just
be skipped as long as `mx` and `my` could not be determined via `:GetCenter()`.
[1] https://github.com/gashole/Aero
Set the scale to previous or 0.85 because the game default
scripts set it to fullscreen scale each time. Additionaly,
as the hook is now in place, it is no longer required to
manually run the default functions when the map gets shown.
Due to crashes/freezes while moving some frames, one possible
reason could be that pfUI was using OnMouseDown and OnMouseUp
to run its frame-moving code. I have noticed better performance
when using the intended functions, OnDragStart and OnDragStop
to move frames.
This commit changes every occurrence of such functions and splits
drag and click into seperate functions where required.
* make use of internal pfUI api functions
* create coord text string only once
* add frame to UISpecialFrames only once
* use a fixed anchor in SetPoint
* cache scale and alpha settings