Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
【反馈】鼠标指针位置BUG,影响获取正确坐标!
Experiences and Insight
965
views ·
4
replies ·
To
floor
Go
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),就不能正确计算坐标了。
只要试试截图时,拖动选择框到屏幕最右边就知道了。
endPoint: QPoint(1360,333)
endPoint: QPoint(1361,333)
endPoint: QPoint(1362,333)
endPoint: QPoint(1362,334)
endPoint: QPoint(1363,334)
endPoint: QPoint(1364,334)
endPoint: QPoint(1364,335)
endPoint: QPoint(1365,335)
endPoint: QPoint(0,0)
endPoint: QPoint(0,0)
endPoint: QPoint(0,0)
endPoint: QPoint(0,0)
endPoint: QPoint(0,0)
Copy the Code
Reply
Like 0
Favorite
View the author
All Replies
moriwuhen
deepin
2017-09-26 02:05
#1
支持反馈,说明很详细
Reply
Like 0
View the author
海天鹰
deepin
2017-09-26 06:32
#2
我怎么拖不出去?
Reply
Like 0
View the author
HualetWang
deepin
2017-09-28 00:43
#3
我的好像也没有问题……
Reply
Like 0
View the author
justforlxz
deepin
2017-09-28 01:21
#4
https://bbs.deepin.org/post/145988
我的好像也没有问题……
打开截图,从屏幕最左边拉到最后边,确实少一像素。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Events
More
https://bbs.deepin.org/user/48640
如下图,图a为鼠标指针,图b中红点为指针上坐标点,在坐标点左边显示有 2 个像素的指针图像。
如我的屏幕 1366×768,鼠标指针移动到屏幕最右边时,继续向右移动鼠标应该如停留在如图c处,x坐标为 1365,不能再向右移动。
问题:deepin在鼠标指针到达这个位置时,鼠标指针还能继续往右边移动,且至少有2个像素,鼠标指针直接跳出屏幕外看不见了,获取到的x坐标为 (0,0),平时可能不觉得,但是关键时刻会带来麻烦。
比如截图时,选择框拖动到最右边一个像素坐标 1365,你不可能刚好停在这里,会继续往右动一点,然后鼠标就出屏幕了,获取到的坐标为 (0,0),就不能正确计算坐标了。
只要试试截图时,拖动选择框到屏幕最右边就知道了。