File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ class Sidebar extends Class
55
55
@fixbutton_addx = @fixbutton .offset ().left - mousex
56
56
@ startDrag ()
57
57
@fixbutton .parent ().on " click touchend touchcancel" , (e ) =>
58
+ if (+ new Date )- @dragStarted < 100
59
+ window .top .location = @fixbutton .find (" .fixbutton-bg" ).attr (" href" )
58
60
@ stopDrag ()
59
61
@ resized ()
60
62
$ (window ).on " resize" , @resized
Original file line number Diff line number Diff line change 57
57
} ) . call ( this ) ;
58
58
59
59
60
-
61
60
/* ---- plugins/Sidebar/media/RateLimit.coffee ---- */
62
61
63
62
87
86
} ) . call ( this ) ;
88
87
89
88
90
-
91
89
/* ---- plugins/Sidebar/media/Scrollable.js ---- */
92
90
93
91
@@ -260,6 +258,9 @@ window.initScrollable = function () {
260
258
} ) ( this ) ) ;
261
259
this . fixbutton . parent ( ) . on ( "click touchend touchcancel" , ( function ( _this ) {
262
260
return function ( e ) {
261
+ if ( ( + ( new Date ) ) - _this . dragStarted < 100 ) {
262
+ window . top . location = _this . fixbutton . find ( ".fixbutton-bg" ) . attr ( "href" ) ;
263
+ }
263
264
return _this . stopDrag ( ) ;
264
265
} ;
265
266
} ) ( this ) ) ;
@@ -647,6 +648,13 @@ window.initScrollable = function () {
647
648
} ) ;
648
649
} ;
649
650
} ) ( this ) ) ;
651
+ this . tag . find ( ".close" ) . off ( "click touchend" ) . on ( "click touchend" , ( function ( _this ) {
652
+ return function ( e ) {
653
+ _this . startDrag ( ) ;
654
+ _this . stopDrag ( ) ;
655
+ return false ;
656
+ } ;
657
+ } ) ( this ) ) ;
650
658
return this . loadGlobe ( ) ;
651
659
} ;
652
660
You can’t perform that action at this time.
0 commit comments