hebertialmeida / HAPaperViewController

😵 [Deprecated] UICollectionView with layout transitions inspired by Facebook Paper App
1.18k stars 166 forks source link

UIPanGestureRecognizer implementation #8

Open hebertialmeida opened 10 years ago

xhzengAIB commented 10 years ago

Hi! @hebertialmeida would you have finished?

Jack

hebertialmeida commented 10 years ago

Sorry @xhzengAIB I'm working on another project because I'm going to the WWDC and I need finish this.

xhzengAIB commented 10 years ago

Hi! @hebertialmeida That's ok, you finish your project! Because WWDC is very great.

Jack

mukyasa commented 10 years ago

Hi! @hebertialmeida

I am trying to replicate the UIPanGestureRecognizer,

The above code is not working 100%,It shows a lag while progress,but it is working .

Can you please tell me where i am wrong,in calculating progress and offset,If u have implemented

Thank You.

// CGFloat distanceDelta =magnitude; // if (self.navigationOperation == UINavigationControllerOperationPop) // { // distanceDelta = -distanceDelta; // } // CGFloat progress = MAX(MIN(((magnitude + (tempvelocity.y+tempvelocity.x) * M_PI) / 250), 1.0), 0.0);

            [self updateWithProgress:magnitude andOffset:offsetToUse];

        }

    }
}

}

xhzengAIB commented 10 years ago

Hi! @mukyasa
You can try pull request to this open source?

Jack

mukyasa commented 10 years ago

I will upload this project with my version of PanGesture soon(With small Performance improvement)

xhzengAIB commented 10 years ago

@mukyasa

Please tell me, your project link?

Thanks

Jack

mukyasa commented 10 years ago

https://github.com/mukyasa/MMPaper

xhzengAIB commented 10 years ago

@mukyasa

Thanks !

Jack

mukyasa commented 10 years ago

Hey Jack check it now,I have made some tweaks,

Also heberti please check it out the zoom pan gesture in my version,please give some suggestion so that we can improve it.

Cheers

hebertialmeida commented 10 years ago

Hi @mukyasa I will check it! And when do you finish it, please make a pull request to this repo if possible...