Skip to content

Commit

Permalink
[thumbnails-orientation] Fix mouse-wheel scrolling for RTL version
Browse files Browse the repository at this point in the history
  • Loading branch information
belozertsev committed Feb 13, 2025
1 parent 1f1965f commit 11a7f1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion slide/Drawing/DrawingDocument.js
Original file line number Diff line number Diff line change
Expand Up @@ -4797,8 +4797,9 @@ function CThumbnailsManager(editorPage)

const delta = GetWheelDeltaY(e);
const isHorizontalOrientation = oThis.m_oWordControl.thumbnailsPosition === thumbnailsPositionMap.bottom;
const isRightToLeft = oThis.m_oWordControl.isRTL;
isHorizontalOrientation
? oThis.m_oWordControl.m_oScrollThumbApi.scrollBy(delta, 0)
? oThis.m_oWordControl.m_oScrollThumbApi.scrollBy(isRightToLeft ? -delta : delta, 0)
: oThis.m_oWordControl.m_oScrollThumbApi.scrollBy(0, delta, false);

if (e.preventDefault)
Expand Down
2 changes: 1 addition & 1 deletion slide/Drawing/HtmlPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
this.MouseHandObject = null;

this.m_oApi = api;
this.thumbnailsPosition = thumbnailsPositionMap.right; // left, right, bottom
this.thumbnailsPosition = thumbnailsPositionMap.bottom; // left, right, bottom
this.isRTL = true;
oThis = this;
}
Expand Down

0 comments on commit 11a7f1b

Please sign in to comment.