<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>199036</bug_id>
          
          <creation_ts>2019-06-19 14:36:15 -0700</creation_ts>
          <short_desc>Web Inspector: don&apos;t show popover for hovered token when editor scrolls due to find previous/next</short_desc>
          <delta_ts>2019-06-19 16:47:52 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=178325</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Baker">mattbaker</reporter>
          <assigned_to name="Matt Baker">mattbaker</assigned_to>
          <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1546248</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Baker">mattbaker</who>
    <bug_when>2019-06-19 14:36:15 -0700</bug_when>
    <thetext>Summary:
Don&apos;t show popover for hovered token when editor scrolls due to find previous/next. It is super annoying.

Steps to Reproduce:
1. Pause in the debugger
2. Cursor should be over the text editor
3. Hit Cmd-F and search for text that appears throughout the script
4. Hit Enter to scroll through matches
=&gt; Eventually the cursor can appear over a symbol in the editor, causing a popover to appear

Note:
This bug is fairly easy to reproduce, but really depends on the cursor position and may take some trial and error to trigger.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1546249</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-06-19 14:36:36 -0700</bug_when>
    <thetext>&lt;rdar://problem/51913772&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1546255</commentid>
    <comment_count>2</comment_count>
    <who name="Matt Baker">mattbaker</who>
    <bug_when>2019-06-19 15:32:35 -0700</bug_when>
    <thetext>Investigating returning early when event.movementX === 0 &amp;&amp; event.movementY === 0. While this holds when the editor scrolls due to find previous/next, I&apos;m worried it could cause false positives.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1546283</commentid>
    <comment_count>3</comment_count>
    <who name="Matt Baker">mattbaker</who>
    <bug_when>2019-06-19 16:47:52 -0700</bug_when>
    <thetext>(In reply to Matt Baker from comment #2)
&gt; Investigating returning early when event.movementX === 0 &amp;&amp; event.movementY
&gt; === 0. While this holds when the editor scrolls due to find previous/next,
&gt; I&apos;m worried it could cause false positives.

Ignoring mousemoves for which event.movementX and event.movementY are zero fixes the problem. However, this will cause real mouse movements within the editor to be dropped. Granted these are just for very minute movements of the cursor. Still, I&apos;m hesitant to make the change before exhausting other possible solutions.

Note:
It looks like the mousemove event that CodeMirrorTokenTrackingController detects when revealing search results in the editor is triggered when the search text is programmatically selected:

selectedTextRange (TextEditor.js:217)
_revealSearchResult (TextEditor.js:1117)
_revealFirstSearchResultAfterCursor (TextEditor.js:1259)
markRanges (TextEditor.js:400)
runInOp (codemirror.js:3743)
addSearchResults (TextEditor.js:404)
searchResultCallback (SourceCodeTextEditor.js:245)
...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>