Questions tagged [pagey]

4 questions
18
votes
4 answers

jQuery (Swipe vs. Touch) pageX and pageY keep returning 0

I'm playing with touchstart and touchend events on my iPhone. I built a sample page that has div that if you touch it and scroll the page, it should return the y coordinates of the start and end positions. link: http://jsbin.com/ibemom/2 the…
DA.
  • 39,848
  • 49
  • 150
  • 213
3
votes
0 answers

Javascript pageY issue with Microsoft Edge browser

I want to create a simple script that will detect if user mouse leave window. Solution is already described here by using mouseout event. The problem with this solution is that it will trigger action also if user goes with mouse to scroller. So I…
JohnyFree
  • 1,319
  • 3
  • 22
  • 35
1
vote
0 answers

pageY = -1 during mouseleave in IE

I have such code: $(document).mouseleave(function (e) { if (e.pageY - $(window).scrollTop() <= 1) { alert('Please, leave your comment!'); } }); It works good in all…
kalya
  • 70
  • 7
0
votes
2 answers

why is this tooltip following the opposite vertical direction?

I'm developing a 'home-made' tooltip using Jquery and CSS, Seems to work OK, http://jsfiddle.net/GLZFc/ It gets positioned ontop of the 'trigger' element (and horizontally centered), but when i move the mouse up it goes down and the opposite…
Toni Michel Caubet
  • 19,333
  • 56
  • 202
  • 378