Projet

Général

Profil

Révision b5b8353a

Ajouté par Mathieu Schiano Di Schiabica il y a plus de 7 ans

Update to 7.53

Voir les différences:

drupal7/misc/tabledrag.js
580 580
 * Get the mouse coordinates from the event (allowing for browser differences).
581 581
 */
582 582
Drupal.tableDrag.prototype.mouseCoords = function (event) {
583
  // Complete support for pointer events was only introduced to jQuery in
584
  // version 1.11.1; between versions 1.7 and 1.11.0 pointer events have the
585
  // clientX and clientY properties undefined. In those cases, the properties
586
  // must be retrieved from the event.originalEvent object instead.
587
  var clientX = event.clientX || event.originalEvent.clientX;
588
  var clientY = event.clientY || event.originalEvent.clientY;
589

  
583 590
  if (event.pageX || event.pageY) {
584 591
    return { x: event.pageX, y: event.pageY };
585 592
  }
593

  
586 594
  return {
587
    x: event.clientX + document.body.scrollLeft - document.body.clientLeft,
588
    y: event.clientY + document.body.scrollTop  - document.body.clientTop
595
    x: clientX + document.body.scrollLeft - document.body.clientLeft,
596
    y: clientY + document.body.scrollTop  - document.body.clientTop
589 597
  };
590 598
};
591 599

  

Formats disponibles : Unified diff