Heray-Was-Here
Server : Apache
System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : calvet ( 273824)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /proc/thread-self/root/lib64/perl5/vendor_perl/auto/Tk/Scrollbar/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/thread-self/root/lib64/perl5/vendor_perl/auto/Tk/Scrollbar/StartDrag.al
# NOTE: Derived from ../blib/lib/Tk/Scrollbar.pm.
# Changes made here will be lost when autosplit is run again.
# See AutoSplit.pm.
package Tk::Scrollbar;

#line 232 "../blib/lib/Tk/Scrollbar.pm (autosplit into ../blib/lib/auto/Tk/Scrollbar/StartDrag.al)"
# tkScrollStartDrag --
# This procedure is called to initiate a drag of the slider.  It just
# remembers the starting position of the slider.
#
# Arguments:
# w -		The scrollbar widget.
# x, y -	The mouse position at the start of the drag operation.

sub StartDrag
{
 my($w,$x,$y) = @_;
 return unless (defined ($w->cget('-command')));
 $pressX = $x;
 $pressY = $y;
 @initValues = $w->get;
 my $iv0 = $initValues[0];
 if (@initValues == 2)
  {
   $initPos = $iv0;
  }
 elsif ($iv0 == 0)
  {
   $initPos = 0;
  }
 else
  {
   $initPos = $initValues[2]/$initValues[0];
  }
}

# end of Tk::Scrollbar::StartDrag
1;

Hry