Skip to content

Commit 32efb5c

Browse files
Issue #197641 by herom, good_man, elcuco: Drag and drop does not work correctly on RTL languages
1 parent 1dbe108 commit 32efb5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/tabledrag.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ Drupal.tableDrag.prototype.dragRow = function (event, self) {
500500
if (self.indentEnabled) {
501501
var xDiff = self.currentMouseCoords.x - self.dragObject.indentMousePos.x;
502502
// Set the number of indentations the mouse has been moved left or right.
503-
var indentDiff = Math.round(xDiff / self.indentAmount * self.rtl);
503+
var indentDiff = Math.round(xDiff / self.indentAmount);
504504
// Indent the row with our estimated diff, which may be further
505505
// restricted according to the rows around this row.
506506
var indentChange = self.rowObject.indent(indentDiff);

0 commit comments

Comments
 (0)