Dragging a tab makes the window slowly scroll up for a while even after not dragging the tab anymore #12506

Closed
opened 2026-01-31 03:17:28 +00:00 by claunia · 4 comments
Owner

Originally created by @RuurdBijlsma on GitHub (Feb 11, 2021).

Originally assigned to: @zadjii-msft on GitHub.

Environment

Windows build number: 10.0.19042.0
Windows Terminal version (if applicable): 1.5.10271.0

Steps to reproduce

  1. Have a single tab open
  2. Drag that tab downward a little (starting your drag at the bottom of the tab, sometimes text in the terminal gets selected this way, but that's not necessary for this to happen)

Expected behavior

It shouldn't scroll up forever when you do that

Actual behavior

If the terminal can scroll up it will scroll up slowly and go on until you click in the terminal
video: https://www.youtube.com/watch?v=o0T1jeFemvQ

Originally created by @RuurdBijlsma on GitHub (Feb 11, 2021). Originally assigned to: @zadjii-msft on GitHub. <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: 10.0.19042.0 Windows Terminal version (if applicable): 1.5.10271.0 ``` # Steps to reproduce 1. Have a single tab open 2. Drag that tab downward a little (starting your drag at the bottom of the tab, sometimes text in the terminal gets selected this way, but that's not necessary for this to happen) # Expected behavior It shouldn't scroll up forever when you do that # Actual behavior If the terminal can scroll up it will scroll up slowly and go on until you click in the terminal video: https://www.youtube.com/watch?v=o0T1jeFemvQ
Author
Owner

@zadjii-msft commented on GitHub (Feb 12, 2021):

Well that certainly looks insane. I can't get this to repro at all though, unfortunately. Who knows, maybe this will be made better with #1256, or far far worse. I guess we'll leave this open on the backlog for now.

@zadjii-msft commented on GitHub (Feb 12, 2021): Well that certainly looks insane. I can't get this to repro at all though, unfortunately. Who knows, maybe this will be made better with #1256, or _far far worse_. I guess we'll leave this open on the backlog for now.
Author
Owner

@leduyquang753 commented on GitHub (Apr 23, 2021):

This looks like it has something to do with the auto-scroll behavior when dragging and dropping: when an object is being dragged by the cursor and the cursor is near an edge of a scrollable container, the container will think the user is wanting to scroll to reveal the portion of the container that the user wants to drop the object to. And Windows terminal's console container is also doing that except that it doesn't stop when the mouse has been released.

Screenshot at 12h47 20 23-04-2021

@leduyquang753 commented on GitHub (Apr 23, 2021): This looks like it has something to do with the auto-scroll behavior when dragging and dropping: when an object is being dragged by the cursor and the cursor is near an edge of a scrollable container, the container will think the user is wanting to scroll to reveal the portion of the container that the user wants to drop the object to. And Windows terminal's console container is also doing that except that it doesn't stop when the mouse has been released. ![Screenshot at 12h47 20 23-04-2021](https://user-images.githubusercontent.com/26449060/115824406-10ac9d00-a432-11eb-94c6-3268b95ae709.gif)
Author
Owner

@zadjii-msft commented on GitHub (Apr 23, 2021):

the auto-scroll behavior when dragging and dropping

Is there some sort of Windows setting that controls that? Because we certainly didn't implement anything like that for the Terminal 😄 We do support "dragging a selection outside the control will scroll the control", but nothing for "dragged something over the edge of the control will scroll the control".

Holy crap I got it to repro. I figured out what's different between mine & OP's setup - you need to drag the tab into the padding. If you're in the padding, then we'll try and start an autoscroll, even without a selection.

This'll be a trivial fix once #9820 lands

@zadjii-msft commented on GitHub (Apr 23, 2021): > the auto-scroll behavior when dragging and dropping Is there some sort of Windows setting that controls that? Because we certainly didn't implement anything like that for the Terminal 😄 We do support "dragging a selection outside the control will scroll the control", but nothing for "dragged something over the edge of the control will scroll the control". Holy crap I got it to repro. I figured out what's different between mine & OP's setup - you need to drag the tab into the _padding_. If you're in the padding, then we'll try and start an autoscroll, even without a selection. This'll be a trivial fix once #9820 lands
Author
Owner

@ghost commented on GitHub (Aug 31, 2021):

:tada:This issue was addressed in #10650, which has now been successfully released as Windows Terminal Preview v1.11.2421.0.🎉

Handy links:

@ghost commented on GitHub (Aug 31, 2021): :tada:This issue was addressed in #10650, which has now been successfully released as `Windows Terminal Preview v1.11.2421.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.11.2421.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12506