【反馈】鼠标指针位置BUG,影响获取正确坐标!
Tofloor
poster avatar
comzhong
deepin
2017-09-26 00:33
Author
本帖最后由 comzhong 于 2017-9-26 10:28 编辑

https://bbs.deepin.org/user/48640
         如下图,图a为鼠标指针,图b中红点为指针上坐标点,在坐标点左边显示有 2 个像素的指针图像。
如我的屏幕 1366×768,鼠标指针移动到屏幕最右边时,继续向右移动鼠标应该如停留在如图c处,x坐标为 1365,不能再向右移动。

问题:deepin在鼠标指针到达这个位置时,鼠标指针还能继续往右边移动,且至少有2个像素,鼠标指针直接跳出屏幕外看不见了,获取到的x坐标为  (0,0),平时可能不觉得,但是关键时刻会带来麻烦。

比如截图时,选择框拖动到最右边一个像素坐标 1365,你不可能刚好停在这里,会继续往右动一点,然后鼠标就出屏幕了,获取到的坐标为 (0,0),就不能正确计算坐标了。

只要试试截图时,拖动选择框到屏幕最右边就知道了。
  1. endPoint: QPoint(1360,333)
  2. endPoint: QPoint(1361,333)
  3. endPoint: QPoint(1362,333)
  4. endPoint: QPoint(1362,334)
  5. endPoint: QPoint(1363,334)
  6. endPoint: QPoint(1364,334)
  7. endPoint: QPoint(1364,335)
  8. endPoint: QPoint(1365,335)
  9. endPoint: QPoint(0,0)
  10. endPoint: QPoint(0,0)
  11. endPoint: QPoint(0,0)
  12. endPoint: QPoint(0,0)
  13. endPoint: QPoint(0,0)
Copy the Code
Reply Favorite View the author
All Replies
avatar
moriwuhen
deepin
2017-09-26 02:05
#1
支持反馈,说明很详细
Reply View the author
avatar
海天鹰
deepin
2017-09-26 06:32
#2
我怎么拖不出去?
Reply View the author
avatar
HualetWang
deepin
2017-09-28 00:43
#3
我的好像也没有问题……
Reply View the author
avatar
justforlxz
deepin
2017-09-28 01:21
#4
https://bbs.deepin.org/post/145988
我的好像也没有问题……

打开截图,从屏幕最左边拉到最后边,确实少一像素。
Reply View the author