mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1174600 - Fix first AccessibleCarets jumps to top of the screen when dragging. r=mtseng
When the second AccessibleCaret is out of scrollport, its logical position becomes (0, 0). Therefore we should adjust the dragging point for first AccessibleCaret only if dragDownBoundaryY > 0.
This commit is contained in:
parent
59af1911ea
commit
d4de804756
@ -831,7 +831,7 @@ AccessibleCaretManager::AdjustDragBoundary(const nsPoint& aPoint) const
|
||||
if (GetCaretMode() == CaretMode::Selection) {
|
||||
if (mActiveCaret == mFirstCaret.get()) {
|
||||
nscoord dragDownBoundaryY = mSecondCaret->LogicalPosition().y;
|
||||
if (adjustedPoint.y > dragDownBoundaryY) {
|
||||
if (dragDownBoundaryY > 0 && adjustedPoint.y > dragDownBoundaryY) {
|
||||
adjustedPoint.y = dragDownBoundaryY;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user