Multicursor selection (alt+shift+click) does not select the correct code when horizontally scrolled

Explanation

When using the multi-cursor selection (ALT + SHIFT + LMB) while being horizontally scrolled, the code that is selected is incorrect, instead being to the left of the actual selection.

The video below shows what happens normally (no horizontal scroll) compared to the broken behaviour (horizontal scroll)

Reproduction

  1. Create a script with lines being longer than the width of the script editing window
  2. Scroll across any distance in the horizontal direction
  3. Use LMB to place a cursor in the code.
  4. Use ALT + SHIFT + LMB to create a selection / to place multiple cursors in a line.
  5. Observe the wrong code being highlighted.
Code with longer lines for testing
local ShopFrames, CodesFrames, QuestFrames, SettingsFrames, LeaderboardFrames, AchievementsFrames = ..., ..., ..., ..., ...
local function ToggleShop() end
local function ToggleCodes() end
local function ToggleQuest() end
local function ToggleSettings() end
local function ToggleLeaderboards() end
local function ToggleAchievements() end

for _, ShopFrame 			 in ipairs(ShopFrames)         do ShopFrame        .Close.Activated:Connect(ToggleShop)         end print("Filler Text to increase horizontal area")
for _, CodesFrame 		 in ipairs(CodesFrames)        do CodesFrame       .Close.Activated:Connect(ToggleCodes)        end print("Filler Text to increase horizontal area")
for _, QuestFrame 		 in ipairs(QuestFrames)        do QuestFrame       .Close.Activated:Connect(ToggleQuest)        end print("Filler Text to increase horizontal area")
for _, SettingsFrame 	 in ipairs(SettingsFrames)     do SettingsFrame    .Close.Activated:Connect(ToggleSettings)     end print("Filler Text to increase horizontal area")
for _, LeaderboardFrame  in ipairs(LeaderboardFrames)  do LeaderboardFrame .Close.Activated:Connect(ToggleLeaderboards) end print("Filler Text to increase horizontal area")
for _, AchievementsFrame in ipairs(AchievementsFrames) do AchievementsFrame.Close.Activated:Connect(ToggleAchievements) end print("Filler Text to increase horizontal area")

Device Info

Operating System: Windows 10
CPU: Ryzen 5 3600
GPU: GTX 1650 Super
RAM: 16GB @ 3600MHz

1 Like

We’ve filed a ticket into our internal database for this issue and will start investigating, we will update you when we have further information.

Thanks for flagging!

Thank you for reporting this, we’ve added this to the Script Editor bug queue and will keep you posted about this.

We’ve successfully deployed an update that should fix the reported issue. Let us know if you’re still having any issues.

1 Like