Important information: Google announced that, from September 2026, Android devices will require ALL apps to be signed by Google, effectively leading to an iOS situation. Value your right to a computer that does what you want; do not tolerate this monopolistic practice! Contact me if you don't understand why it is bad. Click to learn more.

remove double vibration

by roundabout, Tuesday, 6 October 2026, 14:24:49 (1791296689), pushed by roundabout, Tuesday, 6 October 2026, 14:24:52 (1791296692)

Author identity: Vlad <vlad.muntoiu@gmail.com>

4294b485175dbfbc61631d066028938a61267dff

main.py

@@ -132,6 +132,7 @@ class SwipeButton(Gtk.Frame):

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    self.add_controller(self.gesture_drag)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                def finish_drag(self, gesture, offset_x, offset_y):
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                self.zone = GestureZone.NONE
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    if abs(offset_x) / self.get_width() + abs(offset_y) / self.get_height() > 1 / 2:
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                        if offset_x > 0 and offset_y > 0:
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                            self.emit("bottom_right")
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -163,6 +164,7 @@ class SwipeButton(Gtk.Frame):

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                        self.emit("drag_changed", self.zone)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                def begin_drag(self, gesture, start_x, start_y):
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                self.zone = GestureZone.CENTRAL
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    self.emit("drag_changed", GestureZone.CENTRAL)