Some bug with coordinates

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
I'm actually noticed that some time before, but did not reported.
Thing is about coordinates and click emulation.
Basically if you want to click on element what is found some pixels back and not forth - meaning
leftInBrowser -10
topInBrowser - 10

for instance.
Then Click is not triggered.
And this is not action bug because that same problem is if you click with instance.Click in c#

Example attached...
 

Вложения

LexxWork

Client
Регистрация
31.10.2013
Сообщения
1 190
Благодарностей
791
Баллы
113
maybe it should be leftInBrowser + 10 (and better + width/2) the same is about top..
 

LexxWork

Client
Регистрация
31.10.2013
Сообщения
1 190
Благодарностей
791
Баллы
113
I think its a very bad idea to make a click such way you do in a template example. Actualy the element may have some border that is not clickable but the ...inborowser gets the upper left corner of a border. Anyway you could check it by dispatching the event and compare mouse coordinates of zp emulator.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Why you use minus instead of plus?
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
LexxWork in this example I'm clicking in blank place actually, because there is no talks about borders or something, but about bug that click does not work if you subtract pixels, so your last posts does not make any sense...
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Your from value is bigger than to
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
Oh of course if you want to subtract then you have to change numbers also starting with -bigger...
Sorry for that :-)
 

Кто просматривает тему: (Всего: 2, Пользователи: 0, Гости: 2)