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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>25323</bug_id>
          
          <creation_ts>2014-04-11 10:36:12 +0000</creation_ts>
          <short_desc>&quot;fire an event named scroll&quot; use UIEvent?</short_desc>
          <delta_ts>2016-03-14 15:33:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>CSSOM View</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Pieters">zcorpan</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          <cc>crimsteam</cc>
    
    <cc>rbyers</cc>
    
    <cc>travil</cc>
    
    <cc>w3bugs</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103729</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-04-11 10:36:12 +0000</bug_when>
    <thetext>http://dev.w3.org/csswg/cssom-view/#scrolling-0

[[
fire an event named scroll
]]

Gecko uses UIEvent for scroll. http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2937</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103740</commentid>
    <comment_count>1</comment_count>
    <who name="Arkadiusz Michalski (Spirit)">crimsteam</who>
    <bug_when>2014-04-11 12:33:35 +0000</bug_when>
    <thetext>I just wanted to add that in IE we have other behavior. Simple comparison: 

- Chrome always use Event
- Firefox use UIEvent only for scroll event.  &lt;&lt; according D3E it should also be resize (https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#event-type-resize)
- IE use UIEvent for select, resize and scroll.

More detail https://bugzilla.mozilla.org/show_bug.cgi?id=992703.

Next problem is that when event is generated directly from UI then can be UIEvent interface. But sometimes we can make some synthetic action from script (using dedicated method) and how interpretate this? One browser use Event but other still use UIEvent. All specifications do not devote much space to exactly specify this behaviour.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125420</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Rebert">w3bugs</who>
    <bug_when>2016-03-09 22:58:24 +0000</bug_when>
    <thetext>In Edge, scroll is a UIEvent.
In Safari, scroll is a plain Event.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125444</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2016-03-11 15:53:04 +0000</bug_when>
    <thetext>So it&apos;s 50/50. :-(

It seems .pageY contains potentially useful information in Gecko.

Searching on github reveals that there are some pages that use it to record/store scroll position:

https://github.com/search?l=javascript&amp;q=onscroll+pagey&amp;type=Code&amp;utf8=✓

It seems less risky for WebKit/Blink to switch to UIEvent than the other way around, so I suggest we change scroll to use UIEvent.

Relatedly, in Gecko, .pageY is on UIEvent, not on MouseEvent as the current spec says. Though Chromium has it on MouseEvent.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3987

Rick, do you have opinions?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125476</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2016-03-14 15:33:47 +0000</bug_when>
    <thetext>According to MSDN pageX is on MouseEvent in IE/Edge, so I suppose scroll being a UIEvent is only useful in Gecko currently. Travis, does MSDN match what Edge does? Do you have any thoughts what we should spec here?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>