TextLink works out if you select a paragraph with double click and if this paragraph has at least one link #11

Closed
Drugoy opened this Issue Aug 19, 2011 · 0 comments

Projects

None yet

2 participants

@Drugoy
Drugoy commented Aug 19, 2011

The example test case is on your homepage: http://piro.sakura.ne.jp/xul/textlink/index.html.en#testcases

There is a nice feature that lets users not to aim at exactly the beginning of a word if they select some word/text - you can double click the word to select it, or you can double click that word and without releasing the 2nd click move the cursor to select more then one word.

Now try to use it on the test case: as a result, when you release the 2nd click, after selecting the whole paragraph "Test cases" - Text Link will work out and it will recognize that the selected text contains some links and it will open the first of them.

The expected behavior is that TextLink shouldn't work out in this case, as it is obvious that I'm not selecting a link, I'm selecting just some text.

@piroor piroor pushed a commit that closed this issue Aug 29, 2012
@Infocatcher Infocatcher Forbid "dblclick" handling, if mouse was moved
Should fix #11

Main idea: remember "double mousedown" position and compare it with "double mouseup" position.
af34947
@piroor piroor closed this in af34947 Aug 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment