| Index: chrome/browser/resources/pdf/toolbar_manager.js
|
| diff --git a/chrome/browser/resources/pdf/toolbar_manager.js b/chrome/browser/resources/pdf/toolbar_manager.js
|
| index a9c9c36e2b378b20af28446efad61d40561e47f8..796fc9d6c10cf4aec4da0a555c02966ef7b8eba9 100644
|
| --- a/chrome/browser/resources/pdf/toolbar_manager.js
|
| +++ b/chrome/browser/resources/pdf/toolbar_manager.js
|
| @@ -42,8 +42,11 @@ function isMouseNearTopToolbar(e) {
|
| * screen.
|
| */
|
| function isMouseNearSideToolbar(e) {
|
| - return e.x > window.innerWidth - SIDE_TOOLBAR_REVEAL_DISTANCE_RIGHT &&
|
| - e.y > window.innerHeight - SIDE_TOOLBAR_REVEAL_DISTANCE_BOTTOM;
|
| + var atSide = e.x > window.innerWidth - SIDE_TOOLBAR_REVEAL_DISTANCE_RIGHT;
|
| + if (document.dir == 'rtl')
|
| + atSide = e.x < SIDE_TOOLBAR_REVEAL_DISTANCE_RIGHT;
|
| + var atBottom = e.y > window.innerHeight - SIDE_TOOLBAR_REVEAL_DISTANCE_BOTTOM;
|
| + return atSide && atBottom;
|
| }
|
|
|
| /**
|
|
|