vikramjitsaha / biojs

Automatically exported from code.google.com/p/biojs
0 stars 0 forks source link

Selection highlighting off by 1 when reversing direction of selection. #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Create a Biojs.Sequence component and display sequence in any format.
2. Left click on a sequence character and begin dragging from left to right. 
3. Go past the desired end point and start dragging back, right to left.
4. End the selection.

What is the expected output? What do you see instead?

Expect to see the selection highlighting follow the mouse cursor and end on the 
point of release. Instead, when moving backward, the selection highlighting 
moves back an extra character. For example, if the region 5 to 10 was selected 
in this manner, only characters 5 to 9 will be highlighted by the selection.

What version of the product are you using? On what operating system?

Sequence component 1.0.0. Mac OS X 10.7.5, Firefox(18.0), Chrome (Version 
23.0.1271.101), and Safari(6.0.2)

Please provide any additional information below.

Error can be reproduced on the current component demo page at 
http://www.ebi.ac.uk/Tools/biojs/registry/Biojs.Sequence.html

Original issue reported on code.google.com by kumar....@gmail.com on 6 Jan 2013 at 1:30

GoogleCodeExporter commented 9 years ago
This was a problem of selection which was solved by fixing 
https://code.google.com/p/biojs/issues/detail?id=30

Original comment by rajido@gmail.com on 6 Mar 2013 at 3:29