Skip to content

Fix cross-page element dragging in RTL#3637

Merged
swissspidy merged 2 commits intodevelopfrom
fix/3634-rtl-drag
Oct 28, 2019
Merged

Fix cross-page element dragging in RTL#3637
swissspidy merged 2 commits intodevelopfrom
fix/3634-rtl-drag

Conversation

@barklund
Copy link
Copy Markdown
Contributor

@barklund barklund commented Oct 28, 2019

As discovered in #3634 block dragging across pages doesn't work in RTL as the moved element is offset by several pages on the new page. This is fixed by changing the direction of the offsetting based off of RTL setting.

Fixes #3634. Fixes #3012.

Checklist

  • My pull request is addressing an open issue (please create one otherwise).
  • My code is tested and passes existing tests.
  • My code follows the Engineering Guidelines (updates are often made to the guidelines, check it out periodically).

@barklund barklund added the Bug Something isn't working label Oct 28, 2019
@barklund barklund added this to the v1.4 milestone Oct 28, 2019
@barklund barklund self-assigned this Oct 28, 2019
@googlebot
Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added the cla: no Has not signed the Google CLA label Oct 28, 2019
As discovered in #3634 block dragging across pages doesn't work in RTL as the moved element is offset by several pages on the new page. This is fixed by changed the direction of the offsetting based off of RTL setting.

_Fixes 3634. Fixes 3012._
@googlebot
Copy link
Copy Markdown

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: yes Signed the Google CLA and removed cla: no Has not signed the Google CLA labels Oct 28, 2019
Copy link
Copy Markdown
Contributor

@spacedmonkey spacedmonkey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

@swissspidy swissspidy merged commit 1618e8b into develop Oct 28, 2019
@swissspidy swissspidy deleted the fix/3634-rtl-drag branch October 28, 2019 11:52
westonruter added a commit that referenced this pull request Oct 28, 2019
…brand-validation-errors

* 'develop' of github.com:ampproject/amp-wp:
  Update dependency @wordpress/core-data to v2.7.4 (#3640)
  Update dependency @wordpress/editor to v9.7.4 (#3641)
  If text has been pasted, also force update dimesisions.
  Update dependency @wordpress/api-fetch to v3.6.4 (#3639)
  Update dependency @wordpress/edit-post to v3.8.4 (#3643)
  Update eslint and eslint-plugin-jest (#3636)
  Fix context menu for RTL users. (#3633)
  Fix cross-page element dragging in RTL (#3637)
westonruter added a commit that referenced this pull request Oct 28, 2019
…amp-to-amp-navigation

* 'develop' of github.com:ampproject/amp-wp: (74 commits)
  Update button dimensions in CTA edit component
  Update snackbar message wording when removing duplicated blocks (#3652)
  Use 'Confirm removed' and 'Confirm kept'
  Improve presentation of enabled/disabled AMP
  Improve vertical alignment of image next to markup status dropdown
  Update dependency @wordpress/core-data to v2.7.4 (#3640)
  Update dependency @wordpress/editor to v9.7.4 (#3641)
  If text has been pasted, also force update dimesisions.
  Update dependency @wordpress/api-fetch to v3.6.4 (#3639)
  Update dependency @wordpress/edit-post to v3.8.4 (#3643)
  Update eslint and eslint-plugin-jest (#3636)
  Fix context menu for RTL users. (#3633)
  Fix cross-page element dragging in RTL (#3637)
  Ensure update notice is only shown after an update; update todo comment; simplify logic
  Ensure update notice is shown upon update even if no changes were made
  Remove obsolete SVGs
  Colorize remove/keep buttons
  Improve page heading for validated URL screen
  Fix display of status icon in heading
  Set the heading of Validated URL screen to be just 'AMP Validated URL'
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working cla: yes Signed the Google CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dragging block before pages doesn't work on RTL Fix RTL styling in Stories editor

4 participants