def on_mouse_release(self, event):
        """Act according to mouse release event.

        Parameters
        ==========
        event (pygame.event.Event of pygame.MOUSEBUTTONUP
        type)
              Check pygame.event module documentation on
              pygame website for more info about this event
              object.
        """
        ### retrieve mouse position
        mouse_pos = event.pos

        ### check whether any bookmark obj was the target of
        ### the mouse release action

        for bookmark_obj in self.bookmark_objs:

            if bookmark_obj.rect.collidepoint(mouse_pos):

                ## get the current frame index since
                ## app was started/reseted
                frame_index = GENERAL_NS.frame_index

                ## use it to obtain the number of frames passed by
                ## since the last mouse release
                frames_since_last = frame_index - self.last_release_frame

                ## if such number is less than or equal
                ## the maximum number of frames defined for
                ## a second mouse event we consider it as if it
                ## were a double click on the path object,
                ## in which case we load its path; since
                ## this relies on the change_current_dir
                ## method, this operation only makes a
                ## difference if the path is an existing
                ## directory

                if frames_since_last <= MAX_FRAMES_TO_2ND_MOUSE_EVENT:
                    bookmark_obj.load()

                ## finally, we store the current frame index
                ## as the more recent frame where a mouse release event
                ## occured
                self.last_release_frame = frame_index

                ## finally since you found the colliding
                ## path obj, you know the others didn't
                ## collide, so you can safely break out
                ## of the loop
                break
Act according to mouse release event.

        Parameters
        ==========
        event (pygame.event.Event of pygame.MOUSEBUTTONUP
        type)
              Check pygame.event module documentation on
              pygame website for more info about this event
              object.
        
nodezator/fileman/bookmarkpanel/main.py