Camera2D zoom position towards the mouse + Drag margin enabled

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By TitanicJoe

Hello!

I try to create camera movement like in RTS. I create Camera2D node i used scipt shared in:
https://forum.godotengine.org/25983/camera2d-zoom-position-towards-the-mouse
to implement zoom in/out.
I dont understand why this script doest work properly when properties Drag_margin_h/v_enabled are on.