mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-19 00:15:50 +02:00
Disable reply middle-click in temporary columns & fix random reloads from middle-clicks
This commit is contained in:
parent
4a404ecabc
commit
9b139132a1
@ -796,11 +796,13 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
//
|
//
|
||||||
// Block: Make middle click on tweet reply icon open the compose drawer.
|
// Block: Make middle click on tweet reply icon open the compose drawer. Only works for non-temporary columns.
|
||||||
//
|
//
|
||||||
app.delegate(".js-reply-action", "mousedown", function(e){
|
app.delegate(".js-reply-action", "auxclick", function(e){
|
||||||
if (e.which === 2){
|
if (e.which === 2){
|
||||||
if ($("[data-drawer='compose']").hasClass("is-hidden")){
|
let column = $(this).closest(".js-column");
|
||||||
|
|
||||||
|
if (column && column.hasClass("column") && $("[data-drawer='compose']").hasClass("is-hidden")){
|
||||||
$(document).trigger("uiDrawerShowDrawer", {
|
$(document).trigger("uiDrawerShowDrawer", {
|
||||||
drawer: "compose",
|
drawer: "compose",
|
||||||
withAnimation: true
|
withAnimation: true
|
||||||
|
Loading…
Reference in New Issue
Block a user