I have a feeling you are having a problem on mouse coordinate and parallax coordinate, and I forgot one thing (sorry). See Mouse expression (https://www.scirra.com/manual/114/mouse):
Return the position of the mouse cursor over the canvas area in the HTML page. This is (0, 0) at the top left of the canvas and goes up to the window size. It is not affected by any scrolling or scaling in the game.
Return the position of the mouse cursor in game co-ordinates. This is (0, 0) at the top left of the layout. It changes to reflect scrolling and scaling. However, if an individual layer has been scrolled, scaled or rotated, these expressions do not take that in to account - for that case, use the layer versions below.
Return the position of the mouse cursor in game co-ordinates, with scrolling, scaling and rotation taken in to account for the given layer. The layer can be identified either by a string of its name or its zero-based index (e.g. Mouse.X(0)).
The formulae above want the coordinate of the mouse that are absolute on the game screen. Could you try Mouse.AbsoluteX, Mouse.AbsoluteY and please check for their values?