<?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>234256</bug_id>
          
          <creation_ts>2021-12-13 11:15:27 -0800</creation_ts>
          <short_desc>window.screenY is always 0 on mobile devices</short_desc>
          <delta_ts>2022-02-06 02:53:04 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=171841</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="Aidin NasiriShargh">aideen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>joone</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1823643</commentid>
    <comment_count>0</comment_count>
    <who name="Aidin NasiriShargh">aideen</who>
    <bug_when>2021-12-13 11:15:27 -0800</bug_when>
    <thetext>window.screenY (https://developer.mozilla.org/en-US/docs/Web/API/Window/screenY) is supposed to return the vertical distance, in CSS pixels, of the top border of the user&apos;s browser viewport to the top edge of the screen.

On mobile devices (Chrome 96 on Android and iOS + Safari on iOS) it always returns 0.  Firefox (Gecko) on Android, however, returns a non-zero value (53 in my case) which is properly the height of the addressbar and other things between the top of the window and top of the screen.

PS. I can get this by subtracting event.clientY and event.screenY on touch/click events.  But I want it on non-event contexts as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1823658</commentid>
    <comment_count>1</comment_count>
    <who name="Aidin NasiriShargh">aideen</who>
    <bug_when>2021-12-13 11:28:13 -0800</bug_when>
    <thetext>PS. I asked it in stackoverflow too, and shared the background of my problem: https://stackoverflow.com/q/70339906</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1825658</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-12-20 11:16:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/86732718&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>