Skip to content

Problems with mouse clicking/selecting on Visual Editor in Chrome 127.0.6533.120 #15068

Closed

Description

@gtritchie

System details

RStudio Edition : Server/Server-Pro
RStudio Version : Any version I've tried (including 2023.12.1, 2024.04.2, latest builds of 2024.08 and dev build of `main`)
OS Version      : Windows-11, macOS
R Version       : any

Steps to reproduce the problem

  • using Chrome 127.0.6533.120 (the latest at the time of writing this)
  • create an RMarkdown or Quarto document and switch into visual mode
  • try clicking on text that isn't part of a code block to place the editor caret at that location

Describe the problem in detail

  • if you click near end of document it jumps to the start
  • in any case the caret is NOT moved to where you clicked (it does work inside a code block)
  • trying to select text is also not working

Describe the behavior you expected

  • clicking places the caret
  • no jumping back to beginning

Note this appears to be very specific to this version of Chrome (127.0.6533.120). Happens in incognito mode as well.

Working fine with Safari (macOS), Firefox, Chromium v126, Edge on Windows (127.0.2651.105), and Chrome beta 128.0.6613.36.

Also fine on Linux Chrome version 127.0.6533.119.

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Activity

  1. added
    new
    visual markdown
    on Aug 20, 2024
  2. removed
    new
    on Aug 21, 2024
  3. gtritchie commented on Aug 21, 2024

    @gtritchie
    MemberAuthor

    Chrome updated to 128.0.6613.85, and the problem is still happening (only tried on macOS so far).

  4. gtritchie commented on Aug 22, 2024

    @gtritchie
    MemberAuthor

    Note: if you strip out the preamble and any code chunks from a .rmd or .qmd, leaving, essentially markdown, then the mouse selection starts working, so it's not a fundamental problem in Prosemirror.

  5. changed the title [-]Problems with clicking on Visual Editor in Chrome 127.0.6533.120[/-] [+]Problems with mouse clicking/selecting on Visual Editor in Chrome 127.0.6533.120[/+] on Aug 22, 2024
  6. gtritchie commented on Aug 22, 2024

    @gtritchie
    MemberAuthor

    A workaround is to turn off the "Always show focus outlines" option in Tools / Global Options / Accessibility:

    focus-visible-polyfill
  7. added this to the Kousa Dogwood milestone on Aug 23, 2024
  8. gtritchie commented on Aug 23, 2024

    @gtritchie
    MemberAuthor

    This started working again and can no longer reproduce it (currently using Chrome 128.0.6613.85 which was failing 100% of the time yesterday).

  9. kevinushey commented on Aug 26, 2024

    @kevinushey
    Collaborator

    Everything appears fine on my end as well. Chrome Version 128.0.6613.85 (Official Build) (arm64)

  10. ronblum commented on Aug 27, 2024

    @ronblum
    Contributor

    Verified also on posit.cloud and Posit Workbench 2024.08.0+351.pro61, both with Chrome version 128.0.6613.85 on Windows 11.

  11. gtritchie commented on Sep 9, 2024

    @gtritchie
    MemberAuthor

    Hearing reports that this is still happening for some, so reopening.

  12. ronblum commented on Sep 13, 2024

    @ronblum
    Contributor

    The previous reports have subsided thanks to browser updates.

  13. self-assigned this
    on Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugvisual markdown

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions