Repository: stable-diffusion-webui
Issue: [Bug]: Canvas crop/ area selection tool for editing in img2img not working correctly in SD1.5
Labels: upstream,gradio

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

I want to use the Canvas crop/selection tool for editing in img2img to select a certain area of the image for the purpose of controlling light in my generated images, but the selection tool is not working correctly in my opinion. 
I followed the steps in this tutorial video (starts at the second related to this problem: https://youtu.be/_xHC3bT5GBU?t=125 ). But in my case, the selected area is not hold/stable. In my case, after selecting an area in the image by pushing shift and/or dragging with mouse cursor, the image gets zoomed in and maximizes to the full size of the canvas. In the case of the tutorial maker the selected area keeps stable and he can even move selected size frame along the image

OS: Windows 10
Browser: Firefox & Google Chrome
A1111 v1.4.0 & v1.4.1
Stable Diffusion 1.5

### Steps to reproduce the problem

In a nutshell - have a look here: https://youtu.be/_xHC3bT5GBU?t=125

In detail:
1. Load an image from PNG info to img2img to get all the image information to img2img
2. Delete the image in img2img
2. Upload the same image to controlnet and apply depth leres
3. Upload a light map image into the main image frame
4. Open edit function of the uploaded image in the main image frame
5. Press shift and/or drag selection frame with mouse cursor to select an area on the image 


### What should have happened?

As seen in the linked video, the selection frame should stay firm/stable and be able to be moved around the image without auto-maximizing or zoom-in 

### Version or Commit where the problem happens

v1.4.0, v1.4.1

### What Python version are you running on ?

Python 3.10.x

### What platforms do you use to access the UI ?

Windows, Other/Cloud

### What device are you running WebUI on?

Nvidia GPUs (RTX 20 above)

### Cross attention optimization

Automatic

### What browsers do you use to access the UI ?

Mozilla Firefox, Google Chrome

### Command Line Arguments

```Shell
--xformers --lowvram --precision full --no-half --opt-split-attention --autolaunch --theme dark
```


### List of extensions

a1111-sd-webui-lycoris
adetailer
deforum
openpose-editor
sd-webui-controlnet
sd-webui-infinite-image-browsing
sd-webui-openpose-editor
sd-webui-photopea-embed
stable-diffusion-webui-wildcards
ultimate-upscale-for-automatic1111

### Console logs

```Shell
Launching Web UI with arguments: --xformers --lowvram --precision full --no-half --opt-split-attention --autolaunch --theme dark
[-] ADetailer initialized. version: 23.7.9, num models: 9
2023-07-24 10:58:07,610 - ControlNet - INFO - ControlNet v1.1.233
ControlNet preprocessor location: C:\Users\xyz\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2023-07-24 10:58:07,876 - ControlNet - INFO - ControlNet v1.1.233
Loading weights [e9d3cedc4b] from C:\Users\xyz\stable-diffusion-webui\models\Stable-diffusion\realisticVisionV40_v40VAE.safetensors
Creating model from config: C:\Users\xyz\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
*Deforum ControlNet support: enabled*
DiffusionWrapper has 859.52 M params.
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 27.1s (import torch: 7.3s, import gradio: 4.0s, import ldm: 1.8s, other imports: 4.3s, setup codeformer: 0.2s, list SD models: 0.1s, load scripts: 4.9s, scripts before_ui_callback: 0.1s, create ui: 2.2s, gradio launch: 1.0s, app_started_callback: 1.0s).
preload_extensions_git_metadata for 23 extensions took 9.34s
Applying attention optimization: Doggettx... done.
Textual inversion embeddings loaded(9): bad_pictures, BadDream, badhandv4, easynegative, realisticvision-negative-embedding, UnrealisticDream
Model loaded in 15.7s (load weights from disk: 1.3s, create model: 2.0s, apply weights to model: 10.9s, load textual inversion embeddings: 0.2s, calculate empty prompt: 1.2s).
```


### Additional information

_No response_