Some bug with coordinates

  • Автор темы Автор темы lokiys
  • Дата начала Дата начала

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 921
Реакции
1 206
Баллы
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...
 

Вложения

maybe it should be leftInBrowser + 10 (and better + width/2) the same is about top..
 
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.
 
Why you use minus instead of plus?
 
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...
 
Your from value is bigger than to
 

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