Skip to content

Instantly share code, notes, and snippets.

View Ahmadre's full-sized avatar
🐦
fluttering

Rebar Ahmad Ahmadre

🐦
fluttering
  • App Logik GmbH
  • Krefeld - Germany
View GitHub Profile
@Ahmadre
Ahmadre / ScrollAndPinch.cs
Created October 13, 2021 02:02 — forked from ditzel/ScrollAndPinch.cs
Pinch and Scroll to Move and Zoom in Unity for Mobile Games
/*
Set this on an empty game object positioned at (0,0,0) and attach your active camera.
The script only runs on mobile devices or the remote app.
*/
using UnityEngine;
class ScrollAndPinch : MonoBehaviour
@Ahmadre
Ahmadre / fling_physics.dart
Created August 3, 2020 20:12 — forked from slightfoot/fling_physics.dart
Fling PageScrollPhysics for Flutter
// MIT License
//
// Copyright (c) 2019 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions: