Search and Top Navigation
#13475 closed bug (notabug)
Opened July 07, 2015 10:14AM UTC
Closed July 07, 2015 03:25PM UTC
Last modified July 10, 2015 02:52PM UTC
mouse cursor position not accurately determined in jquery-ui.min.js for latest version 1.11.14
Reported by: | smoitra | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.position | Version: | 1.11.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
the position of the cursor is not accurate as calculated in jquery-ui.min.js.
User expects the cursor tip to be the correct position but if the mouse cursor tip and the 2 right,left ends of the cursor are in different rows - then the position of the row is accurate.
The jquery-ui.min.js is not giving the cursor tip position as the position of the row.
Let us say:the mouse cursor is overlapping 2 rows: X and X+1.
The mouse cursor tip is pointing to row X
The end points of the mouse cursor are pointing to row X+1
User expects RowX to be the correct position
Actual behaviour: Row X+1 is retrieved from jquery-ui.min.js
Attachments (0)
Change History (3)
Changed July 07, 2015 03:25PM UTC by comment:1
resolution: | → notabug |
---|---|
status: | new → closed |
Changed July 10, 2015 10:53AM UTC by comment:2
Replying to [comment:1 scott.gonzalez]:
The cursor is actually a single point, so it's impossible for it to overlap two rows. The *icon* for the cursor, however, spans several rows and may or may not be rendered to point to the actual point that the cursor is at.
Thanks for the comment. We rechecked once again and the same use-case was working in earlier versions.
We understand that the cursor is a single point - the issue is which point is referred to in a cursor icon.
We tested with 2 cusror icons in Windows- default and crosshair. For the default cusror icon- the expectation is that the topmost tip of the arrow should be the single point of the cursor - but the actual behaviour is not that. The point is somehwere below the centre of gravity of the cursor.
Similarly, for crosshair cursor - the expectation is that the intersecting point is the cursor point. But once again - the cursor point seems to be towards the lower side.
Kindly let us know - if it is feasible to pin point the single point to the user expectation.
Changed July 10, 2015 02:52PM UTC by comment:3
The only think I can think of would be subpixel rounding. Is the position you're getting different from the position reported by the event you're passing?
The cursor is actually a single point, so it's impossible for it to overlap two rows. The *icon* for the cursor, however, spans several rows and may or may not be rendered to point to the actual point that the cursor is at.