Merge "Add resize cursor to pointers"

This commit is contained in:
Jakob 2016-06-03 09:14:47 +00:00 committed by Gerrit Code Review
commit 9ec481052a
3 changed files with 11 additions and 1 deletions

View file

@ -20,7 +20,9 @@
$html: null,
initialize: function () {
this.$html = $( '<div>' ).attr( 'id', this.id ).addClass( 'mw-pointer' );
this.$html = $( '<div>' )
.attr( 'id', this.id )
.addClass( 'mw-pointer mw-pointer-cursor' );
},
/**

View file

@ -126,6 +126,9 @@
axis: 'x',
grid: [ this.revisionWidth, null ],
containment: '.mw-pointer-container',
start: function () {
$( '.mw-revision-wrapper' ).addClass( 'mw-pointer-cursor' );
},
stop: function () {
var $p = $( this ),
pointer = self.whichPointer( $p ),
@ -142,6 +145,8 @@
self.diffPage.refresh( revId1, revId2 );
self.diffPage.pushState( revId1, revId2, self );
$( '.mw-revision-wrapper' ).removeClass( 'mw-pointer-cursor' );
},
drag: function ( event, ui ) {
var newestVisibleRevisionLeftPos = containerWidth - self.revisionWidth;

View file

@ -129,6 +129,9 @@
height: 13px;
background-repeat: no-repeat;
}
.mw-pointer-cursor {
cursor:ew-resize;
}
.mw-revisions-older {
float:left;