When running the code you give a warning height of window must be 1080 and width of window must be 1920 and all touches and screen captures depend on these dimensions, however they are very difficult to get on laptop screens (I can see you have a very big screen).
So getting the dimensions of the emulator when first run and using percentages would be much better!