when i scale game mouse does not scale with frame

so when i scale the game to 1.6 the mouse can still go far away before it leaves the frame like this for ex:

¤ = mouse

FRAME if i don’t scale it and take outside screen it goes outside screen right away
###############

        #
                       ¤                          <--- OK!

###############

but mine does does

FRAME <-- scaled
¤ <— not ok and it has still not left the frame

############### <— frame end here

     ##
     ##                                            

###############